identity_credential/revocation/
error.rs1pub type RevocationResult<T> = std::result::Result<T, RevocationError>;
6
7#[derive(Debug, thiserror::Error, strum::IntoStaticStr)]
9#[non_exhaustive]
10pub enum RevocationError {
11 #[error("revocation bitmap could not be deserialized or decompressed")]
12 BitmapDecodingError(#[source] std::io::Error),
14 #[error("revocation bitmap could not be serialized or compressed")]
15 BitmapEncodingError(#[source] std::io::Error),
17 #[error("{0}")]
20 InvalidService(&'static str),
21 #[error("unable to decode base64 string: `{0}`")]
23 Base64DecodingError(String, #[source] identity_core::error::Error),
24 #[error("could not parse url")]
25 #[non_exhaustive]
26 UrlConstructionError(#[source] Box<dyn std::error::Error + Send + Sync + 'static>),
28}