public class ExceptionWithStacktrace extends ExceptionAsJson
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 and Description |
---|
ExceptionWithStacktrace() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
createReport(java.lang.Exception exc,
AdaptrisMessage msg) |
serialize
protected java.util.Map<java.lang.String,java.lang.Object> createReport(java.lang.Exception exc, AdaptrisMessage msg)
createReport
in class ExceptionAsJson