Sha256: f9bb3782063a2c36fcb540a69ecf319c83a2f09d1e0dc2ef4c15a2d2c374b64d

Contents?: true

Size: 499 Bytes

Versions: 5

Compression:

Stored size: 499 Bytes

Contents

# An enum of predefined {RpcServer::Server#code}
module CarrotRpc::Error::Code
  # Internal JSON-RPC error.
  INTERNAL_ERROR   = -32_603

  # Invalid method parameter(s).
  INVALID_PARAMS   = -32_602

  # The JSON sent is not a valid Request object.
  INVALID_REQUEST  = -32_600

  # The method does not exist / is not available.
  METHOD_NOT_FOUND = -32_601

  # Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
  PARSE_ERROR      = -32_700
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
carrot_rpc-0.4.1 lib/carrot_rpc/error/code.rb
carrot_rpc-0.4.0 lib/carrot_rpc/error/code.rb
carrot_rpc-0.3.0 lib/carrot_rpc/error/code.rb
carrot_rpc-0.2.3 lib/carrot_rpc/error/code.rb
carrot_rpc-0.2.3.pre lib/carrot_rpc/error/code.rb