Package org.hibernate
Class CallbackException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.CallbackException
-
- All Implemented Interfaces:
java.io.Serializable
public class CallbackException extends HibernateException
Intended to be thrown fromLifecycle
andInterceptor
callbacks. IMPL NOTE : This is a legacy exception type from back in the day before Hibernate moved to a untyped (runtime) exception strategy.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CallbackException(java.lang.Exception cause)
Creates a CallbackException using the given underlying cause.CallbackException(java.lang.String message)
Creates a CallbackException using the given message.CallbackException(java.lang.String message, java.lang.Exception cause)
Creates a CallbackException using the given message and underlying cause.
-
-
-
Constructor Detail
-
CallbackException
public CallbackException(java.lang.Exception cause)
Creates a CallbackException using the given underlying cause.- Parameters:
cause
- The underlying cause
-
CallbackException
public CallbackException(java.lang.String message)
Creates a CallbackException using the given message.- Parameters:
message
- The message explaining the reason for the exception
-
CallbackException
public CallbackException(java.lang.String message, java.lang.Exception cause)
Creates a CallbackException using the given message and underlying cause.- Parameters:
message
- The message explaining the reason for the exceptioncause
- The underlying cause
-
-