Class PersistenceUnitLoadingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.persistence.exceptions.EclipseLinkException
org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
Constructor Summary
ModifierConstructorDescriptionINTERNAL: TopLink exceptions should only be thrown by TopLink.protected
PersistenceUnitLoadingException
(String message) INTERNAL: TopLink exceptions should only be thrown by TopLink.protected
PersistenceUnitLoadingException
(String message, Throwable internalException) INTERNAL: TopLink exceptions should only be thrown by TopLink. -
Method Summary
Modifier and TypeMethodDescriptioncannotRefreshEntityManagerFactoryCreatedFromSession
(String persistenceUnitName) couldNotBuildPersistenceUntiName
(Exception e, String url, String puName) exceptionCreatingArchiveFactory
(String archiveFactoryClassName, Exception e) exceptionLoadingClassWhileInitializingValidationGroups
(String className, Exception cause) exceptionLoadingClassWhileLookingForAnnotations
(String className, Exception cause) exceptionLoadingFromDirectory
(File directory, Exception cause) exceptionLoadingFromJar
(URL jarFile, Exception cause) exceptionLoadingFromUrl
(String url, Exception cause) exceptionLoadingORMXML
(String fileName, Exception cause) exceptionProcessingPersistenceUnit
(URL url, Exception cause) exceptionProcessingPersistenceXML
(URL url, Exception cause) exceptionSearchingForEntities
(URL url, Exception cause) exceptionSearchingForPersistenceResources
(ClassLoader loader, Exception cause) filePathMissingException
(String filePath) persistenceUnitNameAlreadyInUse
(String persistenceUnit, String newPersistenceUnitUrl, String existingPersistenceUnitUrl) sessionNameAlreadyInUse
(String sessionName, String newPersistenceUnit, String existingPersistenceUnit) void
setResourceName
(String resourceName) Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Field Details
-
EXCEPTION_LOADING_FROM_DIRECTORY
public static final int EXCEPTION_LOADING_FROM_DIRECTORY- See Also:
-
EXCEPTION_LOADING_FROM_JAR
public static final int EXCEPTION_LOADING_FROM_JAR- See Also:
-
EXCEPTION_PROCESSING_PERSISTENCE_UNIT
public static final int EXCEPTION_PROCESSING_PERSISTENCE_UNIT- See Also:
-
EXCEPTION_PROCESSING_PERSISTENCE_XML
public static final int EXCEPTION_PROCESSING_PERSISTENCE_XML- See Also:
-
EXCEPTION_SEARCHING_FOR_PERSISTENCE_RESOURCES
public static final int EXCEPTION_SEARCHING_FOR_PERSISTENCE_RESOURCES- See Also:
-
EXCEPTION_SEARCHING_FOR_ENTITIES
public static final int EXCEPTION_SEARCHING_FOR_ENTITIES- See Also:
-
EXCEPTION_LOADING_CLASS
public static final int EXCEPTION_LOADING_CLASS- See Also:
-
FILE_PATH_MISSING_EXCEPTION
public static final int FILE_PATH_MISSING_EXCEPTION- See Also:
-
EXCEPTION_LOADING_FROM_URL
public static final int EXCEPTION_LOADING_FROM_URL- See Also:
-
EXCEPTION_OPENING_ORM_XML
public static final int EXCEPTION_OPENING_ORM_XML- See Also:
-
COULD_NOT_GET_CLASS_NAMES_FROM_URL
public static final int COULD_NOT_GET_CLASS_NAMES_FROM_URL- See Also:
-
COULD_NOT_GET_PERSISTENCE_UNIT_INFO_FROM_URL
public static final int COULD_NOT_GET_PERSISTENCE_UNIT_INFO_FROM_URL- See Also:
-
EXCEPTION_BUILDING_PERSISTENCE_UNIT_NAME
public static final int EXCEPTION_BUILDING_PERSISTENCE_UNIT_NAME- See Also:
-
EXCEPTION_OBTAINING_REQUIRED_BEAN_VALIDATOR_FACTORY
public static final int EXCEPTION_OBTAINING_REQUIRED_BEAN_VALIDATOR_FACTORY- See Also:
-
EXCEPTION_LOADING_VALIDATION_GROUP_CLASS
public static final int EXCEPTION_LOADING_VALIDATION_GROUP_CLASS- See Also:
-
SESSION_NAME_ALREADY_IN_USE
public static final int SESSION_NAME_ALREADY_IN_USE- See Also:
-
PERSISTENCE_UNIT_NAME_ALREADY_IN_USE
public static final int PERSISTENCE_UNIT_NAME_ALREADY_IN_USE- See Also:
-
EXCEPTION_CREATING_ARCHIVE_FACTORY
public static final int EXCEPTION_CREATING_ARCHIVE_FACTORY- See Also:
-
CANNOT_REFRESH_EMF_CREATED_FROM_SESSION
public static final int CANNOT_REFRESH_EMF_CREATED_FROM_SESSION- See Also:
-
-
Constructor Details
-
PersistenceUnitLoadingException
public PersistenceUnitLoadingException()INTERNAL: TopLink exceptions should only be thrown by TopLink. -
PersistenceUnitLoadingException
INTERNAL: TopLink exceptions should only be thrown by TopLink. -
PersistenceUnitLoadingException
INTERNAL: TopLink exceptions should only be thrown by TopLink.
-
-
Method Details
-
exceptionLoadingFromDirectory
public static PersistenceUnitLoadingException exceptionLoadingFromDirectory(File directory, Exception cause) -
filePathMissingException
-
exceptionLoadingFromJar
-
exceptionLoadingFromUrl
-
exceptionProcessingPersistenceUnit
public static PersistenceUnitLoadingException exceptionProcessingPersistenceUnit(URL url, Exception cause) -
exceptionProcessingPersistenceXML
public static PersistenceUnitLoadingException exceptionProcessingPersistenceXML(URL url, Exception cause) -
exceptionSearchingForPersistenceResources
public static PersistenceUnitLoadingException exceptionSearchingForPersistenceResources(ClassLoader loader, Exception cause) -
exceptionSearchingForEntities
public static PersistenceUnitLoadingException exceptionSearchingForEntities(URL url, Exception cause) -
exceptionLoadingClassWhileLookingForAnnotations
public static PersistenceUnitLoadingException exceptionLoadingClassWhileLookingForAnnotations(String className, Exception cause) -
exceptionLoadingORMXML
public static PersistenceUnitLoadingException exceptionLoadingORMXML(String fileName, Exception cause) -
couldNotGetClassNamesFromUrl
-
couldNotGetUnitInfoFromUrl
-
couldNotBuildPersistenceUntiName
public static PersistenceUnitLoadingException couldNotBuildPersistenceUntiName(Exception e, String url, String puName) -
exceptionObtainingRequiredBeanValidatorFactory
public static PersistenceUnitLoadingException exceptionObtainingRequiredBeanValidatorFactory(Throwable cause) -
exceptionLoadingClassWhileInitializingValidationGroups
public static PersistenceUnitLoadingException exceptionLoadingClassWhileInitializingValidationGroups(String className, Exception cause) -
sessionNameAlreadyInUse
public static PersistenceUnitLoadingException sessionNameAlreadyInUse(String sessionName, String newPersistenceUnit, String existingPersistenceUnit) -
persistenceUnitNameAlreadyInUse
public static PersistenceUnitLoadingException persistenceUnitNameAlreadyInUse(String persistenceUnit, String newPersistenceUnitUrl, String existingPersistenceUnitUrl) -
exceptionCreatingArchiveFactory
public static PersistenceUnitLoadingException exceptionCreatingArchiveFactory(String archiveFactoryClassName, Exception e) -
cannotRefreshEntityManagerFactoryCreatedFromSession
public static PersistenceUnitLoadingException cannotRefreshEntityManagerFactoryCreatedFromSession(String persistenceUnitName) -
getResourceName
-
setResourceName
-