Exception: JSONRPC::ParseError
- Defined in:
- lib/jsonrpc/errors/parse_error.rb
Overview
JSON-RPC 2.0 Parse Error (-32700)
Raised when invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
Instance Attribute Summary
Attributes inherited from Error
#code, #data, #message, #request_id
Instance Method Summary collapse
-
#initialize(message = 'Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.', data: nil) ⇒ ParseError
constructor
Creates a new Parse Error with code -32700.
Methods inherited from Error
Constructor Details
#initialize(message = 'Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.', data: nil) ⇒ ParseError
Creates a new Parse Error with code -32700
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/jsonrpc/errors/parse_error.rb', line 26 def initialize( = 'Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.', data: nil ) super( , code: -32_700, data: data ) end |