Package org.hibernate
Class SessionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.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
ConstructorDescriptionSessionException
(String message) Constructs a newSessionException
with the given message.SessionException
(String message, Throwable cause) Constructs a newSessionException
with 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 newSessionException
with the given message.- Parameters:
message
- The message indicating the specific problem.
-
SessionException
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.
-