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
sourceimpl Debug for ProviderError
impl Debug for ProviderError
sourceimpl Display for ProviderError
impl Display for ProviderError
sourceimpl Error for ProviderError
impl Error for ProviderError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ClientError> for ProviderError
impl From<ClientError> for ProviderError
sourcefn from(src: ClientError) -> Self
fn from(src: ClientError) -> Self
Converts to this type from the input type.
sourceimpl From<ClientError> for ProviderError
impl From<ClientError> for ProviderError
sourcefn from(src: ClientError) -> Self
fn from(src: ClientError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for ProviderError
impl From<Error> for ProviderError
sourceimpl From<Error> for ProviderError
impl From<Error> for ProviderError
sourceimpl From<FromHexError> for ProviderError
impl From<FromHexError> for ProviderError
sourcefn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
sourceimpl From<IpcError> for ProviderError
impl From<IpcError> for ProviderError
sourceimpl From<MockError> for ProviderError
impl From<MockError> for ProviderError
sourceimpl From<QuorumError> for ProviderError
impl From<QuorumError> for ProviderError
sourcefn from(src: QuorumError) -> Self
fn from(src: QuorumError) -> Self
Converts to this type from the input type.
sourceimpl From<RetryClientError> for ProviderError
impl From<RetryClientError> for ProviderError
sourcefn from(src: RetryClientError) -> Self
fn from(src: RetryClientError) -> Self
Converts to this type from the input type.
sourceimpl<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,
sourcefn from(src: RwClientError<Read, Write>) -> Self
fn from(src: RwClientError<Read, Write>) -> Self
Converts to this type from the input type.
sourceimpl FromErr<ProviderError> for ProviderError
impl FromErr<ProviderError> for ProviderError
fn from(src: ProviderError) -> Self
Auto Trait Implementations
impl !RefUnwindSafe for ProviderError
impl Send for ProviderError
impl Sync for ProviderError
impl Unpin for ProviderError
impl !UnwindSafe for ProviderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more