use snafu::Snafu;
#[derive(Debug, Snafu)]
#[snafu(visibility(pub(super)))]
pub enum JwsSignerError<E: crate::Error + 'static> {
MismatchedKeyMetadata,
UnderlyingError {
source: E,
},
}
impl<E: crate::Error> crate::Error for JwsSignerError<E> {
fn is_retryable(&self) -> bool {
match self {
JwsSignerError::MismatchedKeyMetadata => false,
JwsSignerError::UnderlyingError { source } => source.is_retryable(),
}
}
}