public class LastKnownException extends java.lang.Object implements ExceptionGenerator
ExceptionGenerator
implementation that generates the exception from the last known exception.
Use this class with ThrowExceptionService
to throw an exception as part of a workflow. Whenever an exception is
encountered in a service, exception is stored as part of object metadata. In some cases, the exception may have been
ignored due to continue-on-fail settings. This implementation uses any Exception stored in object metadata as the base of
the exception that is generated. Note that if this ExceptionGenerator
is used, then it is possible for
ThrowExceptionService
to not throw an exception as there may have not been an exception generated previously.
In the adapter configuration file this class is aliased as last-known-exception which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
LastKnownException() |
Modifier and Type | Method and Description |
---|---|
ServiceException |
create(AdaptrisMessage msg)
Generate a service exception from the AdaptrisMessage.
|
public ServiceException create(AdaptrisMessage msg)
ExceptionGenerator
create
in interface ExceptionGenerator
msg
- the message