Package org.apache.wicket.protocol.http
Class PageExpiredException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.wicket.WicketRuntimeException
-
- org.apache.wicket.protocol.http.PageExpiredException
-
- All Implemented Interfaces:
Serializable
public class PageExpiredException extends WicketRuntimeException
Thrown when aPage
instance cannot be found by its id in the page stores. The page may be missing because of reasons like:- the page have never been stored there, e.g. an error occurred during the storing process
- the http session has expired and thus all pages related to this session are erased too
- the page instance has been erased because the store size exceeded
This exception is used to tell Wicket to respond with the configured PageExpiredPage, so its stacktrace it is not really needed.
- See Also:
HttpSession.setMaxInactiveInterval(int)
,StoreSettings.setMaxSizePerSession(org.apache.wicket.util.lang.Bytes)
,NotSerializableException
,IPageProvider.getPageInstance()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PageExpiredException(String message)
PageExpiredException(String message, Exception cause)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
fillInStackTrace()
Suppress loading of the stacktrace because it is not needed.-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PageExpiredException
public PageExpiredException(String message)
- See Also:
WicketRuntimeException(java.lang.String)
-
PageExpiredException
public PageExpiredException(String message, Exception cause)
Constructor- Parameters:
message
-cause
-
-
-
Method Detail
-
fillInStackTrace
public Throwable fillInStackTrace()
Suppress loading of the stacktrace because it is not needed.- Overrides:
fillInStackTrace
in classThrowable
- See Also:
Throwable.fillInStackTrace()
-
-