NSError(JSON) Class Reference

Category to easily retrieve the 'data' member of the error object. More...

#import <JSONRPC_Extensions.h>

List of all members.

Properties

id data
 return the 'data' member of the JSON-RPC error when an error is returned by the WebService.

Detailed Description

Category to easily retrieve the 'data' member of the error object.

This only has a meaning if this error object conforms to the JSON-RPC 2.0 specification, paragraph 5.1, e.g. the object in the 'error' member of the WebService's response is a JSON object with three fields:

    {
      code: /* a Number that indicates the error type that occurred */,
      message: /* a String providing a short description of the error */,
      data: /* A Primitive or Structured value that contains additional information about the error. The value of this member is defined by the Server */
    } 

Property Documentation

- (id) data [read, assign]

return the 'data' member of the JSON-RPC error when an error is returned by the WebService.

This returns the 'data' key of the NSDictionary corresponding to the JSONRPCErrorJSONObjectKey of the userInfo dictionary. This this userInfo key does not exist, is not an NSDictionary or does not contain this 'data' key, this returns nil.

Generated on Tue Mar 22 22:27:19 2011 for JSONRPC Framework by  doxygen 1.6.3