1
2
3
4
5
6
7
use crate::{Response, SilentError};
use async_trait::async_trait;

#[async_trait]
pub trait ExceptionHandler: Send + Sync + 'static {
    async fn call(&self, err: SilentError) -> Response;
}