Package org.hibernate

Class CallbackException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CallbackException
    extends HibernateException
    Intended to be thrown from Lifecycle and Interceptor 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.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 exception
        cause - The underlying cause