Package com.adobe.idp.dsc.clientsdk
Interfacepublic 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.



Public Methods
 MethodDefined by
  
boolean handleThrowable(Throwable t, ServiceClient sc, ServiceClientFactory scf, MessageDispatcher md, InvocationRequest ir, int numTries)
The method to be invoked when an exception occurs during the processing of a ServiceInvocationRequest
ServiceClientFactory.ThrowHandler
Method Detail
handleThrowable()
public boolean handleThrowable(Throwable t, ServiceClient sc, ServiceClientFactory scf, MessageDispatcher md, InvocationRequest ir, int numTries)

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
DSCException — the originating DSCException to be delivered to client




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/javadoc/com/adobe/idp/dsc/clientsdk/ServiceClientFactory.ThrowHandler.html