use std::fmt::Display;
#[derive(Debug)]
pub struct SignatureError {
message: String,
}
impl SignatureError {
#[must_use]
pub const fn new(message: String) -> Self {
Self { message }
}
#[must_use]
pub fn message(&self) -> &str {
&self.message
}
}
impl Display for SignatureError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.message)
}
}