Top Description Constructors
org.hibernate

public Class HibernateException

extends PersistenceException
Class Inheritance
Known Direct Subclasses
org.hibernate.InstantiationException, org.hibernate.JDBCException, org.hibernate.MappingException, org.hibernate.NonUniqueObjectException, org.hibernate.NonUniqueResultException, org.hibernate.PersistentObjectException, org.hibernate.PropertyValueException, org.hibernate.QueryException, org.hibernate.ResourceClosedException, org.hibernate.SessionException, org.hibernate.LazyInitializationException, org.hibernate.PropertyAccessException, org.hibernate.StaleStateException, org.hibernate.TransactionException, org.hibernate.TransientObjectException, org.hibernate.TypeMismatchException, org.hibernate.UnknownFilterException, org.hibernate.UnknownProfileException, org.hibernate.UnresolvableObjectException, org.hibernate.UnsupportedLockAttemptException, org.hibernate.WrongClassException, org.hibernate.action.internal.EntityActionVetoException, org.hibernate.boot.archive.spi.ArchiveException, org.hibernate.boot.beanvalidation.IntegrationException, org.hibernate.boot.jaxb.internal.stax.XmlInfrastructureException, org.hibernate.boot.model.naming.IllegalIdentifierException, org.hibernate.boot.registry.classloading.spi.ClassLoadingException, org.hibernate.boot.registry.selector.spi.StrategySelectionException, org.hibernate.boot.spi.InFlightMetadataCollector.DuplicateSecondaryTableException, org.hibernate.bytecode.enhance.spi.EnhancementException, org.hibernate.bytecode.internal.bytebuddy.InvalidPropertyAccessorException, org.hibernate.bytecode.spi.NotInstrumentedException, org.hibernate.cache.CacheException, org.hibernate.cache.spi.access.UnknownAccessTypeException, org.hibernate.context.TenantIdentifierMismatchException, org.hibernate.dialect.lock.LockingStrategyException, org.hibernate.engine.jdbc.mutation.group.UnknownParameterException, org.hibernate.engine.jndi.JndiException, org.hibernate.engine.jndi.JndiNameException, org.hibernate.engine.query.ParameterRecognitionException, org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException, org.hibernate.event.service.spi.EventListenerRegistrationException, org.hibernate.graph.CannotBecomeEntityGraphException, org.hibernate.graph.CannotContainSubGraphException, org.hibernate.graph.InvalidGraphException, org.hibernate.id.IdentifierGenerationException, org.hibernate.internal.util.beans.BeanIntrospectionException, org.hibernate.internal.util.config.ConfigurationException, org.hibernate.internal.util.xml.XsdException, org.hibernate.jdbc.BatchFailedException, org.hibernate.jdbc.TooManyRowsAffectedException, org.hibernate.jpa.internal.util.PersistenceUtilHelper.AttributeExtractionException, org.hibernate.loader.MultipleBagFetchException, org.hibernate.loader.NonUniqueDiscoveredSqlAliasException, org.hibernate.metamodel.UnsupportedMappingException, org.hibernate.metamodel.mapping.ordering.ast.OrderByComplianceViolation, org.hibernate.metamodel.mapping.ordering.ast.PathResolutionException, org.hibernate.persister.spi.UnknownPersisterException, org.hibernate.procedure.NamedParametersNotSupportedException, org.hibernate.procedure.NoSuchParameterException, org.hibernate.procedure.ParameterMisuseException, org.hibernate.procedure.ParameterStrategyException, org.hibernate.procedure.ParameterTypeException, org.hibernate.property.access.spi.PropertyAccessBuildingException, org.hibernate.property.access.spi.PropertyAccessException, org.hibernate.property.access.spi.PropertyAccessSerializationException, org.hibernate.query.QueryTypeMismatchException, org.hibernate.query.UnknownParameterException, org.hibernate.query.hql.HqlInterpretationException, org.hibernate.query.results.MissingSqlSelectionException, org.hibernate.query.results.PositionalSelectionsNotAllowedException, org.hibernate.query.sqm.sql.ConversionException, org.hibernate.query.sqm.sql.internal.InstantiationException, org.hibernate.query.sqm.tree.expression.SqmHqlNumericLiteral.TypeException, org.hibernate.resource.beans.container.internal.NoSuchBeanException, org.hibernate.resource.beans.container.internal.NotYetReadyException, org.hibernate.resource.transaction.LocalSynchronizationException, org.hibernate.resource.transaction.NullSynchronizationException, org.hibernate.resource.transaction.TransactionRequiredForJoinException, org.hibernate.resource.transaction.backend.jta.internal.JtaPlatformInaccessibleException, org.hibernate.result.NoMoreReturnsException, org.hibernate.service.UnknownUnwrapTypeException, org.hibernate.service.internal.ServiceDependencyException, org.hibernate.service.internal.ServiceProxyGenerationException, org.hibernate.service.spi.ServiceException, org.hibernate.sql.ast.SqlTreeCreationException, org.hibernate.sql.ast.tree.from.UnknownTableReferenceException, org.hibernate.sql.results.DomainResultCreationException, org.hibernate.sql.results.NoMoreOutputsException, org.hibernate.tool.schema.extract.spi.SchemaExtractionException, org.hibernate.tool.schema.spi.CommandAcceptanceException, org.hibernate.tool.schema.spi.SchemaManagementException, org.hibernate.tool.schema.spi.SqlScriptException, org.hibernate.tuple.entity.CompositeValueGenerationException, org.hibernate.type.SerializationException, org.hibernate.type.descriptor.java.CoercionException, org.hibernate.type.descriptor.java.spi.JdbcTypeRecommendationException, org.hibernate.CallbackException, org.hibernate.HibernateError
Imports
jakarta.persistence.PersistenceException, org.checkerframework.checker.nullness.qual.Nullable

The base type for exceptions thrown by Hibernate.

Note that every exception arising from the JDBC layer is wrapped in some form of JDBCException.

Author
Gavin King

Constructor Summary

AccessConstructor and Description
public
HibernateException(String
The message explaining the reason for the exception
message
)

Constructs a HibernateException using the given exception message.

public
HibernateException(@Nullable Throwable
The underlying cause.
cause
)

Constructs a HibernateException using the given message and underlying cause.

public
HibernateException(String
The message explaining the reason for the exception.
message
,
@Nullable Throwable
The underlying cause.
cause
)

Constructs a HibernateException using the given message and underlying cause.

Constructor Detail

HibernateExceptionback to summary
public HibernateException(String message)

Constructs a HibernateException using the given exception message.

Parameters
message:String

The message explaining the reason for the exception

HibernateExceptionback to summary
public HibernateException(@Nullable Throwable cause)

Constructs a HibernateException using the given message and underlying cause.

Parameters
cause:@Nullable Throwable

The underlying cause.

HibernateExceptionback to summary
public HibernateException(String message, @Nullable Throwable cause)

Constructs a HibernateException using the given message and underlying cause.

Parameters
message:String

The message explaining the reason for the exception.

cause:@Nullable Throwable

The underlying cause.