Package org.hibernate

Class SessionException

java.lang.Object
java.lang.Throwable
All Implemented Interfaces:
Serializable

public classSessionExceptionextendsHibernateException
Thrown when the user calls a method of aSession that is in an inappropriate state for the given call (for example, the session is closed or disconnected).
See Also:
  • Constructor Details

    • SessionException

      public SessionException(String message)
      Constructs a newSessionException with the given message.
      Parameters:
      message - The message indicating the specific problem.
    • SessionException

      public SessionException(String message,Throwable cause)
      Constructs a newSessionException with the given message.
      Parameters:
      message - The message indicating the specific problem.
      cause - An exception which caused this exception to be created.