Class InvalidSessionException

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

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:
  • Constructor Details

    • InvalidSessionException

      Creates a new InvalidSessionException.
    • InvalidSessionException

      Constructs a new InvalidSessionException.
      Parameters:
      message - the reason for the exception
    • InvalidSessionException

      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.