Exception: Protocol::Jsonrpc::MethodNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/protocol/jsonrpc/error.rb

Overview

Error raised when a JSON-RPC method not found error is received from the server Raised when error code is -32601

Constant Summary

Constants inherited from Error

Error::ERROR_MESSAGES, Error::INTERNAL_ERROR, Error::INVALID_PARAMS, Error::INVALID_REQUEST, Error::METHOD_NOT_FOUND, Error::PARSE_ERROR

Instance Attribute Summary

Attributes inherited from Error

#data, #id

Instance Method Summary collapse

Methods inherited from Error

#[], from_message, #initialize, #reply, #to_h, wrap

Constructor Details

This class inherits a constructor from Protocol::Jsonrpc::Error

Instance Method Details

#codeObject



127
128
129
# File 'lib/protocol/jsonrpc/error.rb', line 127

def code
  METHOD_NOT_FOUND
end