Module: Msf::RPC::JSON
- Defined in:
- lib/msf/core/rpc.rb,
lib/msf/core/rpc/json/error.rb,
lib/msf/core/rpc/json/client.rb,
lib/msf/core/rpc/json/request.rb,
lib/msf/core/rpc/json/response.rb,
lib/msf/core/rpc/json/dispatcher.rb,
lib/msf/core/rpc/json/rpc_command.rb,
lib/msf/core/rpc/json/v1_0/rpc_command.rb,
lib/msf/core/rpc/json/dispatcher_helper.rb,
lib/msf/core/rpc/json/rpc_command_factory.rb
Defined Under Namespace
Modules: DispatcherHelper, V1_0, V2_0 Classes: ApplicationServerError, Client, ClientError, Dispatcher, ErrorResponse, InternalError, InvalidParams, InvalidRequest, InvalidResponse, JSONParseError, MethodNotFound, Notification, ParseError, Request, Response, RpcCommand, RpcCommandFactory, RpcError, ServerError
Constant Summary collapse
- PARSE_ERROR =
JSON-RPC 2.0 Error Codes Specification errors:
-32700
- INVALID_REQUEST =
-32600
- METHOD_NOT_FOUND =
-32601
- INVALID_PARAMS =
-32602
- INTERNAL_ERROR =
-32603 ## Implementation-defined server-errors:
- SERVER_ERROR_MAX =
Implementation-defined server-errors:
-32000
- SERVER_ERROR_MIN =
-32099
- APPLICATION_SERVER_ERROR =
-32000
- ERROR_MESSAGES =
JSON-RPC 2.0 Error Messages
{ # Specification errors: PARSE_ERROR => 'Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.', INVALID_REQUEST => 'The JSON sent is not a valid Request object.', METHOD_NOT_FOUND => 'The method %<name>s does not exist.', INVALID_PARAMS => 'Invalid method parameter(s).', INTERNAL_ERROR => 'Internal JSON-RPC error', # Implementation-defined server-errors: APPLICATION_SERVER_ERROR => 'Application server error: %<msg>s' }