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,BatchFailedException,CacheException,CallbackException,ClassLoadingException,CommandAcceptanceException,EnhancementException,EntityMetamodel.ValueGenerationStrategyException,EventListenerRegistrationException,HibernateError,IdentifierGenerationException,IllegalIdentifierException,ImportScriptException,InFlightMetadataCollector.DuplicateSecondaryTableException,InstantiationException,IntegrationException,IntegrationException,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,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 allSQLExceptionswill 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.
-
-