Class JsonErrorReportValve

  • All Implemented Interfaces:
    javax.management.MBeanRegistration, Contained, JmxEnabled, Lifecycle, Valve

    public class JsonErrorReportValve
    extends ErrorReportValve

    Implementation of a Valve that outputs error jsons.

    This Valve should be attached at the Host level, although it will work if attached to a Context.

    • Constructor Detail

      • JsonErrorReportValve

        public JsonErrorReportValve()
    • Method Detail

      • report

        protected void report​(Request request,
                              Response response,
                              java.lang.Throwable throwable)
        Description copied from class: ErrorReportValve
        Prints out an error report.
        Overrides:
        report in class ErrorReportValve
        Parameters:
        request - The request being processed
        response - The response being generated
        throwable - The exception that occurred (which possibly wraps a root cause exception