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/main/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)
Other error types
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Code
impl<'de> Deserialize<'de> for Code
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Error for Code
impl Error for Code
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Ord for Code
impl Ord for Code
source§impl PartialEq<Code> for Code
impl PartialEq<Code> for Code
source§impl PartialOrd<Code> for Code
impl PartialOrd<Code> for Code
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Code
impl Eq for Code
impl StructuralEq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.