core_crypto/mls/credential/
error.rs1#![allow(missing_docs)]
5
6pub(crate) type Result<T, E = Error> = core::result::Result<T, E>;
7
8#[derive(Debug, thiserror::Error)]
9pub enum Error {
10 #[error("The certificate chain is invalid or not complete")]
11 InvalidCertificateChain,
12 #[error("decoding X509 certificate")]
13 DecodeX509(#[source] x509_cert::der::Error),
14 #[error("client presented an invalid identity")]
15 InvalidIdentity,
16 #[error("unsupported credential type")]
23 UnsupportedCredentialType,
24 #[error("unsupported operation. prefer `{0}`")]
31 UnsupportedOperation(&'static str),
32 #[error("unsupported algorithm")]
33 UnsupportedAlgorithm,
34 #[error(transparent)]
35 Keystore(#[from] crate::KeystoreError),
36 #[error(transparent)]
37 Mls(#[from] crate::MlsError),
38 #[error(transparent)]
39 Recursive(#[from] crate::RecursiveError),
40}