Enum tendermint_rpc::response_error::Code
source ·
[−]pub enum Code {
HttpError,
WebSocketError,
ClientInternalError,
ParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
ServerError,
Other(i32),
}Expand description
See func RPC*Error() definitions in:
https://github.com/tendermint/tendermint/blob/master/rpc/jsonrpc/types/types.go
Variants
HttpError
Low-level HTTP error
WebSocketError
Low-level WebSocket error
ClientInternalError
An internal error occurred within the client.
This is an error unique to this client, and is not available in the Go client.
ParseError
Parse error i.e. invalid JSON (-32700)
InvalidRequest
Invalid request (-32600)
MethodNotFound
Method not found error (-32601)
InvalidParams
Invalid parameters (-32602)
InternalError
Internal RPC server error (-32603)
ServerError
Server error (-32000)
Other(i32)
Tuple Fields
0: i32Other error types
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Code
impl UnwindSafe for Code
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
