builder_relayer_client_rust/
errors.rs1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum RelayClientError {
5 #[error("signer is needed to interact with this endpoint!")]
6 SignerUnavailable,
7 #[error("safe already deployed!")]
8 SafeDeployed,
9 #[error("safe not deployed!")]
10 SafeNotDeployed,
11 #[error("http error: {0}")]
12 Http(String),
13 #[error("serialization error: {0}")]
14 Serde(String),
15 #[error("invalid network")]
16 InvalidNetwork,
17 #[error("invalid address")]
18 InvalidAddress,
19 #[error("invalid param")]
20 InvalidParam,
21 #[error("signing error: {0}")]
22 SigningError(String),
23}
24
25pub type Result<T> = std::result::Result<T, RelayClientError>;