#![allow(missing_docs)]
pub type Result<T, E = Error> = core::result::Result<T, E>;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("Couldn't find client")]
ClientNotFound(crate::prelude::ClientId),
#[error(
"You tried to join with an external commit but did not merge it yet. We will reapply this message for you when you merge your external commit"
)]
UnmergedPendingGroup,
#[error("Unknown ciphersuite")]
UnknownCiphersuite,
#[error("Malformed or empty identifier found: {0}")]
MalformedIdentifier(&'static str),
#[error(transparent)]
Keystore(#[from] crate::KeystoreError),
#[error(transparent)]
Mls(#[from] crate::MlsError),
#[error("{0}")]
Leaf(#[from] crate::LeafError),
#[error(transparent)]
Recursive(#[from] crate::RecursiveError),
}