use crate::generic::claims::PasetoClaimError;
use thiserror::Error;
#[deprecated(
since = "0.10.0",
note = "Use rusty_paseto::Error instead. This type will be removed in a future major version."
)]
#[derive(Debug, Error)]
pub enum GenericParserError {
#[error(transparent)]
ClaimError {
#[from]
source: PasetoClaimError,
},
#[error("A paseto cipher error occurred")]
CipherError {
#[from]
source: crate::core::PasetoError,
},
#[error("The payload was unable to be serialized into json")]
PayloadJsonError {
#[from]
source: serde_json::Error,
},
}