Package org.hibernate

Class HibernateException

java.lang.Object
java.lang.Throwable
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArchiveException,AuditException,BatchFailedException,BeanIntrospectionException,CacheException,CallbackException,CannotBecomeEntityGraphException,CannotContainSubGraphException,ClassLoadingException,CoercionException,CommandAcceptanceException,CompositeValueGenerationException,ConfigurationException,ConnectionProviderConfigurationException,ConversionException,DomainResultCreationException,EnhancementException,EntityActionVetoException,EventListenerRegistrationException,FormulaNotSupportedException,HibernateError,HqlInterpretationException,IdentifierGenerationException,IllegalIdentifierException,InFlightMetadataCollector.DuplicateSecondaryTableException,InstantiationException,InstantiationException,IntegrationException,InvalidGraphException,InvalidPropertyAccessorException,JDBCException,JdbcTypeRecommendationException,JndiException,JndiNameException,JtaPlatformException,JtaPlatformInaccessibleException,LazyInitializationException,LocalSynchronizationException,LockingStrategyException,MappingException,MissingSqlSelectionException,MultipleBagFetchException,NamedParametersNotSupportedException,NoMoreOutputsException,NoMoreReturnsException,NonUniqueDiscoveredSqlAliasException,NonUniqueObjectException,NonUniqueResultException,NoSuchBeanException,NoSuchParameterException,NotInstrumentedException,NotYetReadyException,NullSynchronizationException,OrderByComplianceViolation,ParameterMisuseException,ParameterRecognitionException,ParameterStrategyException,ParameterTypeException,PathResolutionException,PersistenceUtilHelper.AttributeExtractionException,PersistentObjectException,PropertyAccessBuildingException,PropertyAccessException,PropertyAccessException,PropertyAccessSerializationException,PropertyValueException,QueryException,QueryTypeMismatchException,ResourceClosedException,SchemaExtractionException,SchemaManagementException,SerializationException,ServiceDependencyException,ServiceException,ServiceProxyGenerationException,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,XmlInfrastructureException,XsdException

public classHibernateExceptionextendsPersistenceException
The base type for exceptions thrown by Hibernate.

Note that everyexception arising from the JDBC layer is wrapped in some form ofJDBCException.

See Also:
  • Constructor Details

    • HibernateException

      public HibernateException(String message)
      Constructs aHibernateException using the given exception message.
      Parameters:
      message - The message explaining the reason for the exception
    • HibernateException

      public HibernateException(@NullableThrowable cause)
      Constructs aHibernateException using the given message and underlying cause.
      Parameters:
      cause - The underlying cause.
    • HibernateException

      public HibernateException(String message, @NullableThrowable cause)
      Constructs aHibernateException using the given message and underlying cause.
      Parameters:
      message - The message explaining the reason for the exception.
      cause - The underlying cause.