public class ExceptionAsJson extends java.lang.Object implements ExceptionSerializer
jackson-databind
when using a ExceptionReportService
.
Writes the minimal amount of information possible which is the Throwable.getMessage()
; the workflow from where the
message was being processed (if available); and the location of the error (i.e. the service that threw the exception).
In the adapter configuration file this class is aliased as exception-as-json which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
ExceptionAsJson() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
createReport(java.lang.Exception exc,
AdaptrisMessage msg) |
void |
serialize(java.lang.Exception exception,
AdaptrisMessage msg) |
public void serialize(java.lang.Exception exception, AdaptrisMessage msg) throws CoreException
serialize
in interface ExceptionSerializer
CoreException
protected java.util.Map<java.lang.String,java.lang.Object> createReport(java.lang.Exception exc, AdaptrisMessage msg)