MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / Web3Error

Enum Web3Error

web3/src/error.rs:12–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11#[derive(Error, Debug)]
12pub enum Web3Error {
13 #[error("Error creating a new HTTP JSON-RPC client: {0}")]
14 ClientError(String),
15
16 #[error("Error serializing or deserializing JSON data: {0}")]
17 JsonParseError(String),
18
19 #[error("Error sending a HTTP JSON-RPC call: {0}")]
20 RpcRequestError(String),
21
22 #[error("Error receiving a HTTP JSON-RPC response: {0}")]
23 RpcResponseError(String),
24
25 #[error("Error signing transaction: {0}")]
26 TransactionSigningError(String),
27}
28
29/// Utility result type to be used throughout
30pub type Result<T> = std::result::Result<T, Web3Error>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected