pub enum ErrorKind {
Io(Error),
Reqwest(Error),
RpcError(RpcError),
SerdeJson(Error),
SigningError(SignerError),
TransactionError(TransactionError),
Custom(String),
}
Variants§
Io(Error)
Reqwest(Error)
RpcError(RpcError)
SerdeJson(Error)
SigningError(SignerError)
TransactionError(TransactionError)
Custom(String)
Implementations§
source§impl ErrorKind
impl ErrorKind
pub fn get_transaction_error(&self) -> Option<TransactionError>
Trait Implementations§
source§impl Error for ErrorKind
impl Error for ErrorKind
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<ErrorKind> for TransportError
impl From<ErrorKind> for TransportError
source§impl From<SignerError> for ErrorKind
impl From<SignerError> for ErrorKind
source§fn from(source: SignerError) -> Self
fn from(source: SignerError) -> Self
Converts to this type from the input type.
source§impl From<TransactionError> for ErrorKind
impl From<TransactionError> for ErrorKind
source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.
source§impl From<TransportError> for ErrorKind
impl From<TransportError> for ErrorKind
source§fn from(err: TransportError) -> Self
fn from(err: TransportError) -> Self
Converts to this type from the input type.