Class PageExpiredException

  • All Implemented Interfaces:
    java.io.Serializable

    public class PageExpiredException
    extends WicketRuntimeException
    Thrown when a Page 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​(java.lang.String message)  
      PageExpiredException​(java.lang.String message, java.lang.Exception cause)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PageExpiredException

        public PageExpiredException​(java.lang.String message,
                                    java.lang.Exception cause)
        Constructor
        Parameters:
        message -
        cause -
    • Method Detail

      • fillInStackTrace

        public java.lang.Throwable fillInStackTrace()
        Suppress loading of the stacktrace because it is not needed.
        Overrides:
        fillInStackTrace in class java.lang.Throwable
        See Also:
        Throwable.fillInStackTrace()