NBMResponseError Class Reference

Inherits from NSObject
Declared in NBMResponse.h

Overview

Represents a JSON-RPC 2.0 error that occurred during the processing of a request.

  code

An NSInteger that indicates the error type.

@property (nonatomic) NSInteger code

Declared In

NBMResponse.h

  message

An NSString providing a short description of the error.

@property (nonatomic, copy) NSString *message

Declared In

NBMResponse.h

  data

Additional information, which may be omitted. Its contents is entirely defined by the application.

@property (nonatomic) id data

Declared In

NBMResponse.h

  error

A NSError object related to the JSON-RPC 2.0 response error.

@property (nonatomic, readonly) NSError *error

Declared In

NBMResponse.h

+ responseErrorWithCode:message:data:

Creates a new JSON-RPC 2.0 error with the specified code, message and data.

+ (instancetype)responseErrorWithCode:(NBMResponseErrorCode)code message:(NSString *)message data:(id)data

Parameters

code

The error code (standard pre-defined or application-specific).

message

The error message.

data

Optional error data, must map to a valid JSON type.

Return Value

A new JSON-RPC 2.0 error.

Declared In

NBMResponse.h