com.adobe.idp.dsc.clientsdk
Interface ServiceClientFactory.ThrowHandler
- Enclosing class:
- ServiceClientFactory
public static interface ServiceClientFactory.ThrowHandler
A ThrowHandler instance participates in the handling of any Exception that
occurs during the invocation of a service request. A client application
may install a single handler in order to provide specialized handling of
error conditions.
handleThrowable
boolean handleThrowable(java.lang.Throwable t,
ServiceClient sc,
ServiceClientFactory scf,
com.adobe.idp.dsc.provider.MessageDispatcher md,
InvocationRequest ir,
int numTries)
throws com.adobe.idp.dsc.DSCException
- The method to be invoked when an exception occurs during the
processing of a ServiceInvocationRequest
- Parameters:
t
- the Throwable that has occurredsc
- the ServiceClient whose invocation caused the exceptionscf
- the ServiceClientFactory instance to which the ServiceClient
is boundmd
- the MessageDispatcher used to deliver the invocation/responseir
- the InvocationRequest that caused the exceptionnumTries
- the number of times the invocation has been attempted
- Returns:
- a boolean that indicates if the request should be resubmitted. A
value of true will retry the invocation, otherwise the exception is
thrown to the caller as normal.
- Throws:
com.adobe.idp.dsc.DSCException
- the originating DSCException to be delivered to
client