Exception: JSONRPC::MethodNotFoundError
- Defined in:
- lib/jsonrpc/errors/method_not_found_error.rb
Overview
JSON-RPC 2.0 Method Not Found Error (-32601)
Raised when the method does not exist / is not available.
Instance Attribute Summary
Attributes inherited from Error
#code, #data, #message, #request_id
Instance Method Summary collapse
-
#initialize(message = 'The requested RPC method does not exist or is not supported.', data: nil, request_id: nil) ⇒ MethodNotFoundError
constructor
Creates a new Method Not Found Error with code -32601.
Methods inherited from Error
Constructor Details
#initialize(message = 'The requested RPC method does not exist or is not supported.', data: nil, request_id: nil) ⇒ MethodNotFoundError
Creates a new Method Not Found Error with code -32601
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/jsonrpc/errors/method_not_found_error.rb', line 26 def initialize( = 'The requested RPC method does not exist or is not supported.', data: nil, request_id: nil ) super( , code: -32_601, data:, request_id: ) end |