Class ExceptionWithStacktrace

  • All Implemented Interfaces:
    ExceptionSerializer

    @ComponentProfile(summary="Serialize an exception as JSON, along with the stack trace, when using ExceptionReportService",
                      tag="json")
    public class ExceptionWithStacktrace
    extends ExceptionAsJson
    Write the exception as a JSON object using jackson-databind when using a ExceptionReportService.

    Note that this implementation doesn't write any of the exception causes, as it is possible that they are self-referential, which will cause a problem when trying to serialize them using jackson; it just captures the stack-trace in addition to information captured by ExceptionAsJson.

    In the adapter configuration file this class is aliased as exception-as-json-with-stacktrace which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • ExceptionWithStacktrace

        public ExceptionWithStacktrace()