Enum ethers_providers::ProviderError
source · pub enum ProviderError {
JsonRpcClientError(Box<dyn Error + Send + Sync>),
EnsError(String),
EnsNotOwned(String),
SerdeJson(Error),
HexError(FromHexError),
HTTPError(Error),
CustomError(String),
UnsupportedRPC,
UnsupportedNodeClient,
SignerUnavailable,
}
Expand description
An error thrown when making a call to the provider
Variants§
JsonRpcClientError(Box<dyn Error + Send + Sync>)
An internal error in the JSON RPC Client
EnsError(String)
An error during ENS name resolution
EnsNotOwned(String)
Invalid reverse ENS name
SerdeJson(Error)
HexError(FromHexError)
HTTPError(Error)
CustomError(String)
UnsupportedRPC
UnsupportedNodeClient
Trait Implementations§
source§impl Debug for ProviderError
impl Debug for ProviderError
source§impl Display for ProviderError
impl Display for ProviderError
source§impl Error for ProviderError
impl Error for ProviderError
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 From<ClientError> for ProviderError
impl From<ClientError> for ProviderError
source§fn from(src: ClientError) -> Self
fn from(src: ClientError) -> Self
Converts to this type from the input type.
source§impl From<ClientError> for ProviderError
impl From<ClientError> for ProviderError
source§fn from(src: ClientError) -> Self
fn from(src: ClientError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ProviderError
impl From<Error> for ProviderError
source§impl From<Error> for ProviderError
impl From<Error> for ProviderError
source§impl From<FromHexError> for ProviderError
impl From<FromHexError> for ProviderError
source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<IpcError> for ProviderError
impl From<IpcError> for ProviderError
source§impl From<MockError> for ProviderError
impl From<MockError> for ProviderError
source§impl From<QuorumError> for ProviderError
impl From<QuorumError> for ProviderError
source§fn from(src: QuorumError) -> Self
fn from(src: QuorumError) -> Self
Converts to this type from the input type.
source§impl From<RetryClientError> for ProviderError
impl From<RetryClientError> for ProviderError
source§fn from(src: RetryClientError) -> Self
fn from(src: RetryClientError) -> Self
Converts to this type from the input type.
source§impl<Read, Write> From<RwClientError<Read, Write>> for ProviderErrorwhere
Read: JsonRpcClient + 'static,
<Read as JsonRpcClient>::Error: Sync + Send + 'static,
Write: JsonRpcClient + 'static,
<Write as JsonRpcClient>::Error: Sync + Send + 'static,
impl<Read, Write> From<RwClientError<Read, Write>> for ProviderErrorwhere
Read: JsonRpcClient + 'static,
<Read as JsonRpcClient>::Error: Sync + Send + 'static,
Write: JsonRpcClient + 'static,
<Write as JsonRpcClient>::Error: Sync + Send + 'static,
source§fn from(src: RwClientError<Read, Write>) -> Self
fn from(src: RwClientError<Read, Write>) -> Self
Converts to this type from the input type.