Package org.apache.shiro.session
Class InvalidSessionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.shiro.ShiroException
-
- org.apache.shiro.session.SessionException
-
- 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 explicitlystopped
programmatically. A Session can also be considered invalid if it has expired.- Since:
- 0.1
- See Also:
StoppedSessionException
,ExpiredSessionException
,UnknownSessionException
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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.
-
-