flamberge_keys/error.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum KeyError {
5 #[error("crypto error: {0}")]
6 Crypto(#[from] flamberge_crypto::CryptoError),
7
8 #[error("invalid input: {0}")]
9 Invalid(String),
10
11 #[error("key source not found: {0}")]
12 NotFound(String),
13
14 #[error("platform key extraction not supported here: {0}")]
15 Unsupported(&'static str),
16
17 #[error("not yet implemented: {0}")]
18 Unimplemented(&'static str),
19}