public class BapiExceptionReport
extends java.lang.Object
implements com.adaptris.core.services.exception.ExceptionReportGenerator
Based on the exception class, this generates a TYPE, ID, NUMBER, along with the exception message for insertion into the document.
In the adapter configuration file this class is aliased as sapjco3-exception-as-xml which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
BapiExceptionReport() |
Modifier and Type | Method and Description |
---|---|
void |
addExceptionMapping(ExceptionMapping m) |
org.w3c.dom.Document |
create(java.lang.Exception e,
java.lang.String workflow,
java.lang.String location) |
ExceptionMapping |
getDefaultExceptionMapping() |
java.util.List<ExceptionMapping> |
getExceptionMappings() |
void |
setDefaultExceptionMapping(ExceptionMapping m)
Set the default exception mapping.
|
void |
setExceptionMappings(java.util.List<ExceptionMapping> mappings)
Set the mappings for exception classes against ID, TYPE, NUMBER.
|
public org.w3c.dom.Document create(java.lang.Exception e, java.lang.String workflow, java.lang.String location) throws java.lang.Exception
create
in interface com.adaptris.core.services.exception.ExceptionReportGenerator
java.lang.Exception
public java.util.List<ExceptionMapping> getExceptionMappings()
public void addExceptionMapping(ExceptionMapping m)
public void setExceptionMappings(java.util.List<ExceptionMapping> mappings)
mappings
- the mapping.public ExceptionMapping getDefaultExceptionMapping()
public void setDefaultExceptionMapping(ExceptionMapping m)
m
- the default exception mapping.Copyright Adaptris