public class SessionException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private Session |
session |
Constructor and Description |
---|
SessionException(java.lang.String message,
java.lang.Throwable cause,
Session session)
Creates a new instance of this exception with the given message,
the wrapped cause of the exception and the session with which
the problem is associated.
|
Modifier and Type | Method and Description |
---|---|
Session |
getSession()
Return the Session on which the problem occurred.
|
private final Session session
private static final long serialVersionUID
public SessionException(java.lang.String message, java.lang.Throwable cause, Session session)
message
- a description of the problemcause
- the error that caused the problemsession
- the session on which the problem occurred.public Session getSession()