Top Description Constructors
org.hibernate

public Class HibernateException

extends PersistenceException
Class Inheritance
Known Direct Subclasses
org.hibernate.InstantiationException, org.hibernate.JDBCException, org.hibernate.LazyInitializationException, org.hibernate.MappingException, org.hibernate.NonUniqueObjectException, org.hibernate.NonUniqueResultException, org.hibernate.PersistentObjectException, org.hibernate.PropertyAccessException, org.hibernate.PropertyValueException, org.hibernate.QueryException, org.hibernate.ResourceClosedException, org.hibernate.SessionException, org.hibernate.StaleStateException, org.hibernate.TransactionException, org.hibernate.TransientObjectException, org.hibernate.TypeMismatchException, 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.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.BulkAccessorException, org.hibernate.bytecode.spi.NotInstrumentedException, org.hibernate.cache.CacheException, org.hibernate.cache.spi.access.UnknownAccessTypeException, org.hibernate.cfg.beanvalidation.IntegrationException, org.hibernate.context.TenantIdentifierMismatchException, org.hibernate.dialect.lock.LockingStrategyException, org.hibernate.engine.jndi.JndiException, org.hibernate.engine.jndi.JndiNameException, org.hibernate.engine.query.ParameterRecognitionException, org.hibernate.engine.transaction.internal.NullSynchronizationException, 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.UnsupportedOrmXsdVersionException, org.hibernate.internal.util.xml.XmlInfrastructureException, org.hibernate.internal.util.xml.XsdException, org.hibernate.jdbc.BatchFailedException, org.hibernate.jdbc.TooManyRowsAffectedException, org.hibernate.loader.MultipleBagFetchException, org.hibernate.loader.custom.NonUniqueDiscoveredSqlAliasException, org.hibernate.loader.plan.spi.QuerySpaceUidNotRegisteredException, org.hibernate.persister.spi.UnknownPersisterException, org.hibernate.procedure.NamedParametersNotSupportedException, org.hibernate.procedure.NoSuchParameterException, org.hibernate.procedure.ParameterMisuseException, org.hibernate.procedure.ParameterStrategyException, org.hibernate.property.access.spi.PropertyAccessBuildingException, org.hibernate.property.access.spi.PropertyAccessException, org.hibernate.property.access.spi.PropertyAccessSerializationException, 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.secure.spi.IntegrationException, org.hibernate.service.NullServiceException, org.hibernate.service.UnknownServiceException, org.hibernate.service.UnknownUnwrapTypeException, org.hibernate.service.internal.ServiceDependencyException, org.hibernate.service.internal.ServiceProxyGenerationException, org.hibernate.service.spi.ServiceException, org.hibernate.jpa.internal.util.PersistenceUtilHelper.AttributeExtractionException, org.hibernate.tool.hbm2ddl.ImportScriptException, org.hibernate.tool.schema.ast.SqlScriptParserException, org.hibernate.tool.schema.extract.spi.SchemaExtractionException, org.hibernate.tool.schema.spi.CommandAcceptanceException, org.hibernate.tool.schema.spi.SchemaManagementException, org.hibernate.tuple.entity.EntityMetamodel.ValueGenerationStrategyException, org.hibernate.type.SerializationException, org.hibernate.CallbackException, org.hibernate.HibernateError
Imports
javax.persistence.PersistenceException

The base exception type for Hibernate exceptions.

Note that all SQLExceptions will be 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(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
,
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(Throwable cause)

Constructs a HibernateException using the given message and underlying cause.

Parameters
cause:Throwable

The underlying cause.

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

Constructs a HibernateException using the given message and underlying cause.

Parameters
message:String

The message explaining the reason for the exception.

cause:Throwable

The underlying cause.