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, ConnectionProviderConfigurationException, ConversionException, DomainResultCreationException, EnhancementException, EventListenerRegistrationException, HibernateError, HqlInterpretationException, IdentifierGenerationException, IllegalIdentifierException, InFlightMetadataCollector.DuplicateSecondaryTableException, InstantiationException, IntegrationException, InvalidGraphException, JDBCException, JdbcTypeRecommendationException, JndiException, JndiNameException, JtaPlatformException, LazyInitializationException, LocalSynchronizationException, LockingStrategyException, MappingException, MissingSqlSelectionException, MultipleBagFetchException, NamedParametersNotSupportedException, NoMoreOutputsException, NoMoreReturnsException, NonUniqueDiscoveredSqlAliasException, NonUniqueObjectException, NonUniqueResultException, NoRowException, NoSuchParameterException, NotInstrumentedException, NullSynchronizationException, OrderByComplianceViolation, ParameterMisuseException, ParameterRecognitionException, ParameterStrategyException, ParameterTypeException, PathResolutionException, PersistentObjectException, PropertyAccessBuildingException, PropertyAccessException, PropertyAccessException, PropertyAccessSerializationException, PropertyValueException, QueryException, QueryTypeMismatchException, ResourceClosedException, SchemaExtractionException, SchemaManagementException, SerializationException, ServiceException, SessionException, SqlScriptException, SqlTreeCreationException, SqmHqlNumericLiteral.TypeException, StaleStateException, StrategySelectionException, TenantIdentifierMismatchException, TooManyRowsAffectedException, TransactionException, TransactionRequiredForJoinException, TransientObjectException, TreatException, TypeMismatchException, UnknownAccessTypeException, UnknownAttributeTypeException, UnknownFilterException, UnknownParameterException, UnknownParameterException, UnknownPersisterException, UnknownProfileException, UnknownTableReferenceException, UnknownUnwrapTypeException, UnresolvableObjectException, UnsupportedLockAttemptException, UnsupportedMappingException, WrongClassException
The base type for exceptions thrown by Hibernate.
Note that every exception arising
from the JDBC layer is wrapped in some form of JDBCException.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHibernateException(@Nullable Throwable cause) Constructs aHibernateExceptionusing the given message and underlying cause.HibernateException(String message) Constructs aHibernateExceptionusing the given exception message.HibernateException(String message, @Nullable Throwable cause) Constructs aHibernateExceptionusing the given message and underlying cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HibernateException
Constructs aHibernateExceptionusing the given exception message.- Parameters:
message- The message explaining the reason for the exception
-
HibernateException
Constructs aHibernateExceptionusing the given message and underlying cause.- Parameters:
cause- The underlying cause.
-
HibernateException
-