Class JsonErrorReportValve

All Implemented Interfaces:
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 Details

    • JsonErrorReportValve

      public JsonErrorReportValve()
  • Method Details

    • report

      protected void report(Request request, Response response, 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