Package org.hibernate
Class SessionException
- All Implemented Interfaces:
Serializable
Thrown when the user calls a method of a
Session that is in an inappropriate state for the given call (for example, the session is closed or disconnected).- See Also:
Constructor Summary
ConstructorsConstructorDescriptionSessionException(String message) Constructs a newSessionExceptionwith the given message.SessionException(String message,Throwable cause) Constructs a newSessionExceptionwith the given message.Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed,fillInStackTrace,getCause,getLocalizedMessage,getMessage,getStackTrace,getSuppressed,initCause,printStackTrace,printStackTrace,printStackTrace,setStackTrace,toString
Constructor Details
SessionException
Constructs a newSessionExceptionwith the given message.- Parameters:
message- The message indicating the specific problem.
SessionException
Constructs a newSessionExceptionwith the given message.- Parameters:
message- The message indicating the specific problem.cause- An exception which caused this exception to be created.