Package org.hibernate
Class HibernateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ArchiveException
,AuditException
,BatchFailedException
,CacheException
,CallbackException
,CannotBecomeEntityGraphException
,CannotContainSubGraphException
,ClassLoadingException
,CommandAcceptanceException
,EnhancementException
,EntityMetamodel.ValueGenerationStrategyException
,EventListenerRegistrationException
,HibernateError
,IdentifierGenerationException
,IllegalIdentifierException
,ImportScriptException
,InFlightMetadataCollector.DuplicateSecondaryTableException
,InstantiationException
,IntegrationException
,IntegrationException
,InvalidGraphException
,JDBCException
,JndiException
,JndiNameException
,JtaPlatformException
,LazyInitializationException
,LocalSynchronizationException
,LockingStrategyException
,MappingException
,MultipleBagFetchException
,NamedParametersNotSupportedException
,NoMoreReturnsException
,NonUniqueDiscoveredSqlAliasException
,NonUniqueObjectException
,NonUniqueResultException
,NoSuchParameterException
,NotInstrumentedException
,NullServiceException
,NullSynchronizationException
,ParameterMisuseException
,ParameterRecognitionException
,ParameterStrategyException
,PersistentObjectException
,PropertyAccessBuildingException
,PropertyAccessException
,PropertyAccessException
,PropertyAccessSerializationException
,PropertyValueException
,QueryException
,QuerySpaceUidNotRegisteredException
,ResourceClosedException
,SchemaExtractionException
,SchemaManagementException
,SerializationException
,ServiceException
,SessionException
,SqlScriptParserException
,StaleStateException
,StrategySelectionException
,TenantIdentifierMismatchException
,TooManyRowsAffectedException
,TransactionException
,TransactionRequiredForJoinException
,TransientObjectException
,TypeMismatchException
,UnknownAccessTypeException
,UnknownPersisterException
,UnknownProfileException
,UnknownServiceException
,UnknownUnwrapTypeException
,UnresolvableObjectException
,UnsupportedLockAttemptException
,WrongClassException
public class HibernateException extends PersistenceException
The base exception type for Hibernate exceptions. Note that allSQLExceptions
will be wrapped in some form ofJDBCException
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HibernateException(java.lang.String message)
Constructs a HibernateException using the given exception message.HibernateException(java.lang.String message, java.lang.Throwable cause)
Constructs a HibernateException using the given message and underlying cause.HibernateException(java.lang.Throwable cause)
Constructs a HibernateException using the given message and underlying cause.
-
-
-
Constructor Detail
-
HibernateException
public HibernateException(java.lang.String message)
Constructs a HibernateException using the given exception message.- Parameters:
message
- The message explaining the reason for the exception
-
HibernateException
public HibernateException(java.lang.Throwable cause)
Constructs a HibernateException using the given message and underlying cause.- Parameters:
cause
- The underlying cause.
-
HibernateException
public HibernateException(java.lang.String message, java.lang.Throwable cause)
Constructs a HibernateException using the given message and underlying cause.- Parameters:
message
- The message explaining the reason for the exception.cause
- The underlying cause.
-
-