Exception: JSONRPC::InternalError
- Defined in:
- lib/jsonrpc/errors/internal_error.rb
Overview
JSON-RPC 2.0 Internal Error (-32603)
Raised when there was an internal JSON-RPC error.
Instance Attribute Summary
Attributes inherited from Error
#code, #data, #message, #request_id
Instance Method Summary collapse
-
#initialize(message = 'Internal JSON-RPC error.', data: nil, request_id: nil) ⇒ InternalError
constructor
Creates a new Internal Error with code -32603.
Methods inherited from Error
Constructor Details
#initialize(message = 'Internal JSON-RPC error.', data: nil, request_id: nil) ⇒ InternalError
Creates a new Internal Error with code -32603
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/jsonrpc/errors/internal_error.rb', line 26 def initialize( = 'Internal JSON-RPC error.', data: nil, request_id: nil ) super( , code: -32_603, data:, request_id: ) end |