JSON-RPC 2.0
JSON-RPC 2.0 Modern C++ Library
Loading...
Searching...
No Matches
jsonrpc::error Namespace Reference

Namespaces

namespace  detail
 

Classes

class  RpcError
 

Enumerations

enum class  RpcErrorCode {
  kParseError = -32700 , kInvalidRequest = -32600 , kMethodNotFound = -32601 , kInvalidParams = -32602 ,
  kInternalError = -32603 , kServerError = -32000 , kTransportError = -32010 , kTimeoutError = -32001 ,
  kClientError = -32099 , kClientSerializationError = -32002 , kClientDeserializationError = -32003 , kUnknownError = -32098
}
 

Functions

auto Ok () -> std::expected< void, RpcError >
 

Enumeration Type Documentation

◆ RpcErrorCode

enum class jsonrpc::error::RpcErrorCode
strong
Enumerator
kParseError 
kInvalidRequest 
kMethodNotFound 
kInvalidParams 
kInternalError 
kServerError 
kTransportError 
kTimeoutError 
kClientError 
kClientSerializationError 
kClientDeserializationError 
kUnknownError 

Definition at line 10 of file error.hpp.

10 {
11 // Standard errors
12 kParseError = -32700,
13 kInvalidRequest = -32600,
14 kMethodNotFound = -32601,
15 kInvalidParams = -32602,
16 kInternalError = -32603,
17
18 // Implementation-defined server errors
19 kServerError = -32000,
20 kTransportError = -32010,
21 kTimeoutError = -32001,
22
23 // Client errors
24 kClientError = -32099,
27
28 // Unknown error
29 kUnknownError = -32098,
30};

Function Documentation

◆ Ok()

auto jsonrpc::error::Ok ( ) -> std::expected<void, RpcError>
inline

Definition at line 111 of file error.hpp.

111 {
112 return {};
113}