core_crypto/mls/
error.rs

1//! MLS errors
2
3// We allow missing documentation in the error module because the types are generally self-descriptive.
4#![allow(missing_docs)]
5
6pub type Result<T, E = Error> = core::result::Result<T, E>;
7
8#[derive(Debug, thiserror::Error)]
9pub enum Error {
10    /// The ciphersuite identifier presented does not map to a known ciphersuite.
11    #[error("Unknown ciphersuite")]
12    UnknownCiphersuite,
13    #[error("Malformed or empty identifier found: {0}")]
14    MalformedIdentifier(&'static str),
15    #[error(transparent)]
16    Keystore(#[from] crate::KeystoreError),
17    #[error(transparent)]
18    Mls(#[from] crate::MlsError),
19    #[error("{0}")]
20    Leaf(#[from] crate::LeafError),
21    #[error(transparent)]
22    Recursive(#[from] crate::RecursiveError),
23}