Package org.hibernate

Class CallbackException

All Implemented Interfaces:
Serializable

@Deprecated(since="7") public class CallbackException extends HibernateException
Deprecated.
Methods of Interceptor are no longer required to throw this exception type.
Intended to be thrown from 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 Details

    • CallbackException

      public CallbackException(Exception cause)
      Deprecated.
      Creates a CallbackException using the given underlying cause.
      Parameters:
      cause - The underlying cause
    • CallbackException

      public CallbackException(String message)
      Deprecated.
      Creates a CallbackException using the given message.
      Parameters:
      message - The message explaining the reason for the exception
    • CallbackException

      public CallbackException(String message, Exception cause)
      Deprecated.
      Creates a CallbackException using the given message and underlying cause.
      Parameters:
      message - The message explaining the reason for the exception
      cause - The underlying cause