Enum jsonrpsee_types::error::ErrorCode
source · pub enum ErrorCode {
ParseError,
OversizedRequest,
InvalidRequest,
MethodNotFound,
ServerIsBusy,
InvalidParams,
InternalError,
ServerError(i32),
}
Expand description
JSONRPC error code
Variants§
ParseError
Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
OversizedRequest
The request was too big.
InvalidRequest
The JSON sent is not a valid Request object.
MethodNotFound
The method does not exist / is not available.
ServerIsBusy
Server is busy / resources are at capacity.
InvalidParams
Invalid method parameter(s).
InternalError
Internal JSON-RPC error.
ServerError(i32)
Reserved for implementation-defined server-errors.
Implementations§
Trait Implementations§
source§impl<'a> Deserialize<'a> for ErrorCode
impl<'a> Deserialize<'a> for ErrorCode
source§fn deserialize<D>(deserializer: D) -> Result<ErrorCode, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<ErrorCode, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Error for ErrorCode
impl Error for ErrorCode
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()