Package org.hibernate
Class HibernateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ArchiveException,BatchFailedException,CacheException,CallbackException,CannotBecomeEntityGraphException,CannotContainSubGraphException,ClassLoadingException,CoercionException,CommandAcceptanceException,ConversionException,DomainResultCreationException,EnhancementException,EntityMetamodel.ValueGenerationStrategyException,EventListenerRegistrationException,HibernateError,HqlInterpretationException,IdentifierGenerationException,IllegalIdentifierException,IllegalIdentifierException,InFlightMetadataCollector.DuplicateSecondaryTableException,InstantiationException,IntegrationException,InvalidGraphException,JDBCException,JdbcTypeRecommendationException,JndiException,JndiNameException,JtaPlatformException,LazyInitializationException,LocalSynchronizationException,LockingStrategyException,MappingException,MissingSqlSelectionException,MultipleBagFetchException,NamedParametersNotSupportedException,NoMoreOutputsException,NoMoreReturnsException,NonUniqueDiscoveredSqlAliasException,NonUniqueObjectException,NonUniqueResultException,NoSuchParameterException,NotInstrumentedException,NullServiceException,NullSynchronizationException,OrderByComplianceViolation,ParameterMisuseException,ParameterRecognitionException,ParameterStrategyException,ParsingException,PathException,PathResolutionException,PersistentObjectException,PositionalSelectionsNotAllowedException,PropertyAccessBuildingException,PropertyAccessException,PropertyAccessException,PropertyAccessSerializationException,PropertyValueException,QueryException,QueryTypeMismatchException,ResourceClosedException,SchemaExtractionException,SchemaManagementException,SerializationException,ServiceException,SessionException,SqlScriptException,SqlTreeCreationException,SqmAttributeJoin.NotJoinableException,StaleStateException,StrategySelectionException,TenantIdentifierMismatchException,TooManyRowsAffectedException,TransactionException,TransactionRequiredForJoinException,TransientObjectException,TypeMismatchException,UnknownAccessTypeException,UnknownParameterException,UnknownPersisterException,UnknownProfileException,UnknownServiceException,UnknownTableReferenceException,UnknownUnwrapTypeException,UnresolvableObjectException,UnsupportedLockAttemptException,UnsupportedMappingException,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(String message)Constructs a HibernateException using the given exception message.HibernateException(String message, Throwable cause)Constructs a HibernateException using the given message and underlying cause.HibernateException(Throwable cause)Constructs a HibernateException using the given message and underlying cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HibernateException
public HibernateException(String message)
Constructs a HibernateException using the given exception message.- Parameters:
message- The message explaining the reason for the exception
-
HibernateException
public HibernateException(Throwable cause)
Constructs a HibernateException using the given message and underlying cause.- Parameters:
cause- The underlying cause.
-
-