use crate::template::template_exception::TemplateException;
use std::fmt;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct UndeclaredThrowableException(pub String);
impl fmt::Display for UndeclaredThrowableException {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(&self.0)
}
}
impl std::error::Error for UndeclaredThrowableException {}
impl From<UndeclaredThrowableException> for TemplateException {
fn from(e: UndeclaredThrowableException) -> Self {
TemplateException(e.0)
}
}