fireblocks_config/
error.rs1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5 #[error("config not found {path}")]
6 ConfigNotFound { path: String },
7
8 #[error(transparent)]
9 ConfigParseError(#[from] config::ConfigError),
10
11 #[error(transparent)]
12 IO(#[from] std::io::Error),
13
14 #[error("missing secret key. Check your configuration file or set env FIREBLOCKS_SECRET")]
15 MissingSecret,
16
17 #[error("{asset} not found")]
18 AssetNotFound { asset: String },
19
20 #[error("IO error for file {path:?}: {source}")]
21 IOError {
22 source: std::io::Error,
23 path: String,
24 },
25
26 #[cfg(feature = "gpg")]
27 #[error(transparent)]
28 GpgError(#[from] gpgme::Error),
29}