Package org.hibernate
Class CallbackException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.CallbackException
- All Implemented Interfaces:
Serializable
Intended to be thrown from
Lifecycle
and Interceptor
callbacks.- See Also:
- Implementation Note:
- This is a legacy exception type from back in the day before Hibernate moved to an unchecked exception strategy.
-
Constructor Summary
ConstructorDescriptionCallbackException
(Exception cause) Creates a CallbackException using the given underlying cause.CallbackException
(String message) Creates a CallbackException using the given message.CallbackException
(String message, Exception cause) Creates a CallbackException 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 Details
-
CallbackException
Creates a CallbackException using the given underlying cause.- Parameters:
cause
- The underlying cause
-
CallbackException
Creates a CallbackException using the given message.- Parameters:
message
- The message explaining the reason for the exception
-
CallbackException
Creates a CallbackException using the given message and underlying cause.- Parameters:
message
- The message explaining the reason for the exceptioncause
- The underlying cause
-