Exception: JSONRPC::InvalidRequestError
- Defined in:
- lib/jsonrpc/errors/invalid_request_error.rb
Overview
JSON-RPC 2.0 Invalid Request Error (-32600)
Raised when the JSON sent is not a valid Request object.
Instance Attribute Summary
Attributes inherited from Error
#code, #data, #message, #request_id
Instance Method Summary collapse
-
#initialize(message = 'The JSON payload was valid JSON, but not a valid JSON-RPC Request object.', data: nil, request_id: nil) ⇒ InvalidRequestError
constructor
Creates a new Invalid Request Error with code -32600.
Methods inherited from Error
Constructor Details
#initialize(message = 'The JSON payload was valid JSON, but not a valid JSON-RPC Request object.', data: nil, request_id: nil) ⇒ InvalidRequestError
Creates a new Invalid Request Error with code -32600
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/jsonrpc/errors/invalid_request_error.rb', line 26 def initialize( = 'The JSON payload was valid JSON, but not a valid JSON-RPC Request object.', data: nil, request_id: nil ) super( , code: -32_600, data:, request_id: ) end |