@ComponentProfile(summary="Generate a report based on the current exception",
                  tag="service,error-handling")
public class ExceptionReportService
extends ServiceImp
In some scenarios (e.g. handling request reply scenarios), rather than directly handling the message exception in the adapter, it may be required to report back to the back-end application that an exception has occured along with the problem document.
ExceptionSerializer, 
CoreConstants.OBJ_METADATA_EXCEPTIONIn the adapter configuration file this class is aliased as exception-report-service which is the preferred alternative to the fully qualified classname when building your configuration.
log| Constructor and Description | 
|---|
ExceptionReportService()  | 
ExceptionReportService(ExceptionSerializer e)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
closeService()  | 
void | 
doService(AdaptrisMessage msg)
 Apply the service to the message. 
 | 
ExceptionSerializer | 
getExceptionSerializer()  | 
protected void | 
initService()  | 
void | 
prepare()
Prepare for initialisation. 
 | 
void | 
setExceptionSerializer(ExceptionSerializer exceptionSerializer)  | 
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stoppublic ExceptionReportService()
public ExceptionReportService(ExceptionSerializer e)
public void doService(AdaptrisMessage msg) throws ServiceException
ServiceApply the service to the message.
msg - the AdaptrisMessage to processServiceException - wrapping any underlying Exceptionsprotected void initService()
                    throws CoreException
initService in class ServiceImpCoreExceptionprotected void closeService()
closeService in class ServiceImppublic void prepare()
             throws CoreException
ComponentLifecycleExtensionCoreExceptionpublic ExceptionSerializer getExceptionSerializer()
public void setExceptionSerializer(ExceptionSerializer exceptionSerializer)