wire_e2e_identity/acme/
error.rs1pub type RustyAcmeResult<T> = Result<T, RustyAcmeError>;
3
4#[derive(Debug, thiserror::Error)]
6pub enum RustyAcmeError {
7 #[error(transparent)]
9 JsonError(#[from] serde_json::Error),
10 #[error(transparent)]
12 UrlError(#[from] url::ParseError),
13 #[error(transparent)]
15 JwtError(#[from] rusty_jwt_tools::prelude::RustyJwtError),
16 #[error(transparent)]
18 X509CheckError(#[from] crate::x509_check::RustyX509CheckError),
19 #[error(transparent)]
21 OidError(#[from] x509_cert::der::oid::Error),
22 #[error(transparent)]
24 DerError(#[from] x509_cert::der::Error),
25 #[error(transparent)]
27 PemError(#[from] pem::PemError),
28 #[error(transparent)]
30 RawJwtError(#[from] jwt_simple::Error),
31 #[error(transparent)]
33 SignatureError(#[from] signature::Error),
34 #[error("We have done something terribly wrong and it needs to be fixed")]
36 ImplementationError,
37 #[error("Requested functionality is not supported for the moment")]
39 NotSupported,
40 #[error("This library has been used the wrong way by users because {0}")]
42 ClientImplementationError(&'static str),
43 #[error("Incorrect response from ACME server because {0}")]
45 SmallstepImplementationError(&'static str),
46 #[error(transparent)]
48 AccountError(#[from] crate::acme::account::AcmeAccountError),
49 #[error(transparent)]
51 OrderError(#[from] crate::acme::order::AcmeOrderError),
52 #[error(transparent)]
54 AuthzError(#[from] crate::acme::authz::AcmeAuthzError),
55 #[error(transparent)]
57 ChallengeError(#[from] crate::acme::chall::AcmeChallError),
58 #[error(transparent)]
60 FinalizeError(#[from] crate::acme::finalize::AcmeFinalizeError),
61 #[error(transparent)]
63 Utf8(#[from] std::str::Utf8Error),
64}