Exception: JSONRPC::InvalidParamsError
- Defined in:
- lib/jsonrpc/errors/invalid_params_error.rb
Overview
JSON-RPC 2.0 Invalid Params Error (-32602)
Raised when invalid method parameter(s) were provided.
Instance Attribute Summary
Attributes inherited from Error
#code, #data, #message, #request_id
Instance Method Summary collapse
-
#initialize(message = 'Invalid method parameter(s).', data: nil, request_id: nil) ⇒ InvalidParamsError
constructor
Creates a new Invalid Params Error with code -32602.
Methods inherited from Error
Constructor Details
#initialize(message = 'Invalid method parameter(s).', data: nil, request_id: nil) ⇒ InvalidParamsError
Creates a new Invalid Params Error with code -32602
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/jsonrpc/errors/invalid_params_error.rb', line 26 def initialize( = 'Invalid method parameter(s).', data: nil, request_id: nil ) super( , code: -32_602, data:, request_id: ) end |