pub enum Web3Error {
BadResponse(String),
FailedToSend(ActixError),
JsonRpcError {
code: i64,
message: String,
data: String,
},
InsufficientGas {
balance: Uint256,
base_gas: Uint256,
gas_required: Uint256,
},
BadInput(String),
EventNotFound(String),
CouldNotRemoveFilter(String),
ClarityError(ClarityError),
ContractCallError(String),
TransactionTimeout,
NoBlockProduced {
time: Duration,
},
SyncingNode(String),
}
Variants§
BadResponse(String)
FailedToSend(ActixError)
JsonRpcError
InsufficientGas
BadInput(String)
EventNotFound(String)
CouldNotRemoveFilter(String)
ClarityError(ClarityError)
ContractCallError(String)
TransactionTimeout
NoBlockProduced
SyncingNode(String)
Trait Implementations§
source§impl Error for Web3Error
impl Error for Web3Error
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()
source§impl From<Error> for Web3Error
impl From<Error> for Web3Error
source§fn from(error: ClarityError) -> Self
fn from(error: ClarityError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for Web3Error
impl From<ParseIntError> for Web3Error
source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.