core_crypto/mls/credential/
error.rs#![allow(missing_docs)]
pub(crate) type Result<T, E = Error> = core::result::Result<T, E>;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("The certificate chain is invalid or not complete")]
InvalidCertificateChain,
#[error("decoding X509 certificate")]
DecodeX509(#[source] x509_cert::der::Error),
#[error("client presented an invalid identity")]
InvalidIdentity,
#[error("unsupported credential type")]
UnsupportedCredentialType,
#[error("unsupported operation. prefer `{0}`")]
UnsupportedOperation(&'static str),
#[error("unsupported algorithm")]
UnsupportedAlgorithm,
#[error(transparent)]
Keystore(#[from] crate::KeystoreError),
#[error(transparent)]
Mls(#[from] crate::MlsError),
#[error(transparent)]
Recursive(#[from] crate::RecursiveError),
}