Skip to main content

wire_e2e_identity/
error.rs

1// We allow missing documentation in the error module because the types are generally
2// self-descriptive.
3#![expect(missing_docs)]
4
5pub type E2eIdentityResult<T> = Result<T, E2eIdentityError>;
6
7#[derive(Debug, thiserror::Error)]
8pub enum E2eIdentityError {
9    #[error("certificate acquisition is not supported for {0:?}")]
10    UnsupportedCipherSuite(openmls_traits::types::Ciphersuite),
11    #[error(transparent)]
12    AcmeError(#[from] crate::acme::Error),
13    #[error(transparent)]
14    JwtError(#[from] rusty_jwt_tools::prelude::RustyJwtError),
15    #[error(transparent)]
16    JwtSimpleError(#[from] jwt_simple::Error),
17    #[error(transparent)]
18    PkiEnvError(#[from] crate::pki_env::Error),
19    #[error(transparent)]
20    ValidationError(#[from] crate::validation::Error),
21}