smplx_sdk/provider/
error.rs1use crate::provider::rpc::error::RpcError;
2
3#[derive(Debug, thiserror::Error)]
4pub enum ProviderError {
5 #[error(transparent)]
6 Rpc(#[from] RpcError),
7
8 #[error("HTTP request failed: {0}")]
9 Request(String),
10
11 #[error("Couldn't wait for the transaction to be confirmed")]
12 Confirmation(),
13
14 #[error("Broadcast failed with HTTP {status} for {url}: {message}")]
15 BroadcastRejected { status: u16, url: String, message: String },
16
17 #[error("Failed to deserialize response: {0}")]
18 Deserialize(String),
19
20 #[error("Invalid txid format: {0}")]
21 InvalidTxid(String),
22}