openmls/credentials/
errors.rs1use crate::error::LibraryError;
6use thiserror::Error;
7
8#[derive(Error, Debug, PartialEq, Clone)]
10pub enum CredentialError {
11 #[error(transparent)]
13 LibraryError(#[from] LibraryError),
14 #[error("Unsupported credential type.")]
16 UnsupportedCredentialType,
17 #[error("Invalid signature.")]
19 InvalidSignature,
20}
21
22#[derive(Error, Debug, PartialEq, Clone)]
24pub enum BasicCredentialError {
25 #[error(transparent)]
27 TlsCodecError(#[from] tls_codec::Error),
28 #[error("Wrong credential type.")]
30 WrongCredentialType,
31}