use thiserror::Error;
#[derive(Error, Debug)]
#[allow(missing_copy_implementations)]
pub enum LongTermSecretError {
#[error("current epoch {0} does not match epoch {1} from ciphertext")]
EpochNotMatching(u64, u64),
#[error("secret group id {0} does not match ciphertext {1}")]
GroupNotMatching(String, String),
#[error(transparent)]
HashError(#[from] crate::hash::HashError),
#[error(transparent)]
CryptoError(#[from] openmls_traits::types::CryptoError),
}