org.apache.shiro.session
Class InvalidSessionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.shiro.ShiroException
                  extended by org.apache.shiro.session.SessionException
                      extended by org.apache.shiro.session.InvalidSessionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
StoppedSessionException, UnknownSessionException

public class InvalidSessionException
extends SessionException

Exception thrown when attempting to interact with the system under an established session when that session is considered invalid. The meaning of the term 'invalid' is based on application behavior. For example, a Session is considered invalid if it has been explicitly stopped (e.g. when a user logs-out or when explicitly stopped programmatically. A Session can also be considered invalid if it has expired.

Since:
0.1
See Also:
StoppedSessionException, ExpiredSessionException, UnknownSessionException, Serialized Form

Constructor Summary
InvalidSessionException()
          Creates a new InvalidSessionException.
InvalidSessionException(String message)
          Constructs a new InvalidSessionException.
InvalidSessionException(String message, Throwable cause)
          Constructs a new InvalidSessionException.
InvalidSessionException(Throwable cause)
          Constructs a new InvalidSessionException.
 
Method Summary
 
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

InvalidSessionException

public InvalidSessionException()
Creates a new InvalidSessionException.


InvalidSessionException

public InvalidSessionException(String message)
Constructs a new InvalidSessionException.

Parameters:
message - the reason for the exception

InvalidSessionException

public InvalidSessionException(Throwable cause)
Constructs a new InvalidSessionException.

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

InvalidSessionException

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

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


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.