Class ExceptionReportService

  • All Implemented Interfaces:
    AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, MessageEventGenerator, Service, StateManagedComponent

    @ComponentProfile(summary="Generate a report based on the current exception",
                      tag="service,error-handling")
    public class ExceptionReportService
    extends ServiceImp
    Service that takes an exception in object metadata and serializes that into the AdaptrisMessage payload.

    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.

    See Also:
    ExceptionSerializer, CoreConstants.OBJ_METADATA_EXCEPTION

    In 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.