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
public class SessionException extends HibernateException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SessionException(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 Detail
-
SessionException
public SessionException(String message)
Constructs a newSessionException
with the given message.- Parameters:
message
- The message indicating the specific problem.
-
-