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
SignerUnavailable
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
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<T> From<RetryClientError<T>> for ProviderError where
T: JsonRpcClient + 'static,
<T as JsonRpcClient>::Error: Sync + Send + 'static,
impl<T> From<RetryClientError<T>> for ProviderError where
T: JsonRpcClient + 'static,
<T as JsonRpcClient>::Error: Sync + Send + 'static,
sourcefn from(src: RetryClientError<T>) -> Self
fn from(src: RetryClientError<T>) -> Self
Converts to this type from the input type.
sourceimpl<Read, Write> From<RwClientError<Read, Write>> for ProviderError where
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 ProviderError where
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more