use thiserror::Error;
#[derive(Debug, Error)]
#[error("DMRTDException: {message}")]
pub struct DMRTDException {
pub message: String,
}
impl DMRTDException {
pub fn new(message: impl Into<String>) -> Self {
Self {
message: message.into(),
}
}
pub fn exception_name(&self) -> &'static str {
"DMRTDException"
}
}
pub type DmrtdError = DMRTDException;