<JSONRPCDelegate> Protocol Reference
JSONRPC Error Handler protocol, used on the JSONRPCMethodCall's or JSONRPCService's delegate (see Error management).
More...
#import <JSONRPCService.h>
List of all members.
Detailed Description
JSONRPC Error Handler protocol, used on the JSONRPCMethodCall's or JSONRPCService's delegate (see Error management).
Member Function Documentation
- (void) methodCall: |
|
(JSONRPCMethodCall *) |
methodCall |
didReturn: |
|
(id) |
result |
error: |
|
(NSError *) |
error | |
|
|
| | [optional] |
method called upon reception of the result of a JSON-RPC method call, if no callback defined in the returned JSONRPCResponseHandler to catch the response.
- Parameters:
-
| methodCall | the methodCall that received a response from the WebService |
| result | the "result" object returned by the JSON-RPC WebService. (May be nil if the WebService returned an error) |
| error | the "error" object returned by the JSON-RPC WebService. (Will be nil if no error) |
- (BOOL) methodCall: |
|
(JSONRPCMethodCall *) |
methodCall |
shouldForwardConnectionError: |
|
(NSError *) |
error | |
|
|
| | [optional] |
Called when an error occurred during the method call. (see Error management).
- Parameters:
-
| methodCall | the JSONRPCMethodCall that triggered the error |
| error | the error that happend |
- Returns:
- YES to continue calling this to the next error handler, NO to stop forwarding.
- (void) methodCall: |
|
(JSONRPCMethodCall *) |
methodCall |
willRetryAfterError: |
|
(NSError *) |
error | |
|
|
| | [optional] |
Called when a network error occurred because the network has been lost, and so the request will be retried automatically soon.
- Parameters:
-
| methodCall | the JSONRPCMethodCall that triggered the error |
| error | the error that happend |
Called to notify when the request, that previously failed because of lost network, is being retried.
- Parameters:
-