JSecurity

org.jsecurity.session
Class SessionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jsecurity.JSecurityException
                  extended by org.jsecurity.session.SessionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidSessionException

public class SessionException
extends JSecurityException

General security exception attributed to problems during interaction with the system during a session.

Since:
0.1
Author:
Les Hazlewood
See Also:
Serialized Form

Constructor Summary
SessionException()
          Creates a new SessionException.
SessionException(Serializable sessionId)
          Constructs a new SessionException.
SessionException(String message)
          Constructs a new SessionException.
SessionException(String message, Serializable sessionId)
          Constructs a new SessionException.
SessionException(String message, Throwable cause)
          Constructs a new SessionException.
SessionException(String message, Throwable cause, Serializable sessionId)
          Constructs a new InvalidSessionException.
SessionException(Throwable cause)
          Constructs a new SessionException.
 
Method Summary
 Serializable getSessionId()
          Returns the session id of the associated Session.
 void setSessionId(Serializable sessionId)
          Sets the session id of the Session associated with this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionException

public SessionException()
Creates a new SessionException.


SessionException

public SessionException(String message)
Constructs a new SessionException.

Parameters:
message - the reason for the exception

SessionException

public SessionException(Throwable cause)
Constructs a new SessionException.

Parameters:
cause - the underlying Throwable that caused this exception to be thrown.

SessionException

public SessionException(String message,
                        Throwable cause)
Constructs a new SessionException.

Parameters:
message - the reason for the exception
cause - the underlying Throwable that caused this exception to be thrown.

SessionException

public SessionException(Serializable sessionId)
Constructs a new SessionException.

Parameters:
sessionId - the session id of associated Session.

SessionException

public SessionException(String message,
                        Serializable sessionId)
Constructs a new SessionException.

Parameters:
message - the reason for the exception
sessionId - the session id of associated Session.

SessionException

public SessionException(String message,
                        Throwable cause,
                        Serializable sessionId)
Constructs a new InvalidSessionException.

Parameters:
message - the reason for the exception
cause - the underlying Throwable that caused this exception to be thrown.
sessionId - the session id of associated Session.
Method Detail

getSessionId

public Serializable getSessionId()
Returns the session id of the associated Session.

Returns:
the session id of the associated Session.

setSessionId

public void setSessionId(Serializable sessionId)
Sets the session id of the Session associated with this exception.

Parameters:
sessionId - the session id of the Session associated with this exception.

JSecurity

Copyright © 2004-2008 JSecurity.