#[derive(Debug, PartialEq)]
pub enum MediatorError {
HandlerNotRegisteredError,
}
impl std::error::Error for MediatorError {}
impl std::fmt::Display for MediatorError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
MediatorError::HandlerNotRegisteredError => write!(f, "Handler not registered"),
}
}
}