org.apache.beehive.netui.pageflow
Class SessionExpiredException
Object
Throwable
Exception
RuntimeException
PageFlowManagedObjectException
PageFlowException
SessionExpiredException
- All Implemented Interfaces:
- Serializable
public class SessionExpiredException
- extends PageFlowException
Exception thrown in place of another PageFlowException
when:
- The requested session ID is different than the current session ID (or there is no current session), and
- the original exception to be thrown returns
true
for
PageFlowException.causeMayBeSessionExpiration()
, and
- The
<throw-session-expired-exception>
element in WEB-INF/beehive-netui-config.xml is
set to true
(the default) .
When this exception is thrown, the original exception (considered to be a secondary effect of the session expiration)
can be obtained through getEffect()
.
- See Also:
- Serialized Form
Method Summary |
boolean |
causeMayBeSessionExpiration()
Tell whether the root cause may be session expiration in cases where the requested session ID is different than
the actual session ID. |
Throwable |
getEffect()
Get the effect of the session expiration; this is the exception that was most likely caused by the session
expiring. |
protected Object[] |
getMessageArgs()
|
protected String[] |
getMessageParts()
|
Methods inherited from class Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SessionExpiredException
public SessionExpiredException(PageFlowException effect)
getMessageArgs
protected Object[] getMessageArgs()
- Specified by:
getMessageArgs
in class PageFlowManagedObjectException
getMessageParts
protected String[] getMessageParts()
- Specified by:
getMessageParts
in class PageFlowManagedObjectException
getEffect
public Throwable getEffect()
- Get the effect of the session expiration; this is the exception that was most likely caused by the session
expiring.
causeMayBeSessionExpiration
public boolean causeMayBeSessionExpiration()
- Tell whether the root cause may be session expiration in cases where the requested session ID is different than
the actual session ID. In this case, the answer is
true
(since this is the exception that is thrown
in for session expiration).
- Specified by:
causeMayBeSessionExpiration
in class PageFlowException