1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use thiserror::Error;
#[derive(Error, Debug)]
pub enum NcryptfError {
#[error("the argument provided `{0}` was did not match the expected type")]
InvalidArgument(String),
#[error("the argument provided `{0}` was did not match the expected type")]
TokenSignatureSize(String),
#[error("signature could not be generated")]
SignatureGenerationError,
#[error("message could not be encrypted")]
EncryptError,
#[error("message could not be decrypted")]
DecryptError
}