1#![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 #[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}