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
public class CallbackException extends HibernateException
Intended to be thrown fromLifecycle
andInterceptor
callbacks.- See Also:
- Serialized Form
- Implementation Note:
- This is a legacy exception type from back in the day before Hibernate moved to an unchecked exception strategy.
-
-
Constructor Summary
Constructors Constructor Description CallbackException(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 Detail
-
CallbackException
public CallbackException(Exception cause)
Creates a CallbackException using the given underlying cause.- Parameters:
cause
- The underlying cause
-
CallbackException
public CallbackException(String message)
Creates a CallbackException using the given message.- Parameters:
message
- The message explaining the reason for the exception
-
-