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.


Method Summary
 boolean handleThrowable(java.lang.Throwable t, ServiceClient sc, ServiceClientFactory scf, com.adobe.idp.dsc.provider.MessageDispatcher md, InvocationRequest ir, int numTries)
          The method to be invoked when an exception occurs during the processing of a ServiceInvocationRequest
 

Method Detail

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 occurred
sc - the ServiceClient whose invocation caused the exception
scf - the ServiceClientFactory instance to which the ServiceClient is bound
md - the MessageDispatcher used to deliver the invocation/response
ir - the InvocationRequest that caused the exception
numTries - 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


[an error occurred while processing this directive] [an error occurred while processing this directive]