Module: JSONRPC

Defined in:
lib/jsonrpc.rb,
lib/jsonrpc/version.rb

Overview

Since:

  • 0.1.0

Defined Under Namespace

Modules: RPCObject Classes: ErrorResponse, Notification, Request, Response

Constant Summary collapse

ERRORS =

Returns:

  • (Hash<Symbol,Hash<Symbol,String|Integer>>)

Since:

  • 0.1.0

{
  parse_error: {
    code: -32_700,
    message: 'Parse Error'
  },
  invalid_request: {
    code: -32_600,
    message: 'Invalid Request'
  },
  method_not_found: {
    code: -32_601,
    message: 'Method Not Found'
  },
  invalid_params: {
    code: -32_602,
    message: 'Invalid Params'
  },
  internal_error: {
    code: -32_603,
    message: 'Internal Error'
  },
  unauthorized: {
    code: -33_001,
    message: 'Unauthorized'
  },
  application_error: {
    code: -33_002,
    message: 'Application Error'
  },
  jsonrpc_specification_violation: {
    code: -33_003,
    message: 'JSONRPC Specification Violation'
  }
}.freeze
VERSION =

Returns:

  • (String)

Since:

  • 0.1.0

'0.1.0'