Exception: JSONRPC::InternalError
- Defined in:
- lib/jsonrpc/errors/internal_error.rb,
sig/jsonrpc/errors/internal_error.rbs
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
#to_h, #to_json, #to_response, #validate_code, #validate_message
Constructor Details
#initialize(message = 'Internal JSON-RPC error.', data: nil, request_id: nil) ⇒ InternalError
Creates a new Internal Error with code -32603
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/jsonrpc/errors/internal_error.rb', line 28 def initialize( = 'Internal JSON-RPC error.', data: nil, request_id: nil ) super( , code: -32_603, data:, request_id: ) end |