Skip to main content

did_scid/
errors.rs

1use didwebvh_rs::DIDWebVHError;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5pub enum DIDSCIDError {
6    #[error("Unsupported format")]
7    UnsupportedFormat,
8    #[error("DID URL Error: {0}")]
9    DidUrlError(String),
10    #[error("WebVH error")]
11    WebVHError(#[from] DIDWebVHError),
12    #[error("Cheqd error: {0}")]
13    CheqdError(String),
14    #[error("Is a peer SCID DID, but no peer source information provided")]
15    MissingPeerSource,
16    #[error("Serialization/Deserializaton error occurred")]
17    SerdeError(#[from] serde_json::Error),
18}