Class ErrorServlet

  • All Implemented Interfaces:
    Serializable, Servlet, ServletConfig

    public class ErrorServlet
    extends HttpServlet
    Common servlet for errors This is intended for webapps and local plugins. It is not appropriate for eepsites or remotely-accessible plugins, as it uses local console resources. See http://www.eclipse.org/jetty/documentation/current/custom-error-pages.html for how to add to web.xml or see examples in bundled webapps. Init parameters:
    • CSSPath - absolue URL of CSS to reference, starting with /, defaults to console theme
    • name - webapp or plugin name, will be translated with bundle, e.g. SusiMail
    • bundle - package of translation bundle, e.g. net.i2p.susimail.web.messages
    Most strings are translated with the console bundle, as we're using the same strings as in error.jsp and error500.jsp. Supported error codes: 403, 404, and 500+. Others must be added here.
    Since:
    0.9.34 adapted from routerconsole error.jsp, error500.jsp, and CSSHelper
    See Also:
    Serialized Form