clob_client_rust/
errors.rs1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum ClobError {
5 #[error("Signer is needed to interact with this endpoint!")]
6 L1AuthUnavailable,
7
8 #[error("API Credentials are needed to interact with this endpoint!")]
9 L2AuthNotAvailable,
10
11 #[error("Builder API Credentials needed to interact with this endpoint!")]
12 BuilderAuthNotAvailable,
13
14 #[error("Builder key auth failed!")]
15 BuilderAuthFailed,
16
17 #[error("Other error: {0}")]
18 Other(String),
19}