murgamu 0.7.3

Murgamü is an NestJS-inspired web framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::core::error::MurError;
use crate::mur_http::request::MurRequestContext;
use crate::MurRes;

pub trait MurExceptionFilter: Send + Sync + 'static {
	fn catch(&self, error: MurError, ctx: &MurRequestContext) -> MurRes;

	fn can_handle(&self, _error: &MurError) -> bool {
		true
	}

	fn name(&self) -> &str {
		std::any::type_name::<Self>()
	}
}