macro_rules! rustisan_error {
(config, $msg:expr) => { ... };
(routing, $msg:expr) => { ... };
(database, $msg:expr) => { ... };
(validation, $msg:expr) => { ... };
(auth, $msg:expr) => { ... };
(forbidden, $msg:expr) => { ... };
(not_found, $msg:expr) => { ... };
(internal, $msg:expr) => { ... };
(app, $code:expr, $msg:expr) => { ... };
(app, $code:expr, $msg:expr, $details:expr) => { ... };
}
Expand description
Macro for creating RustisanError quickly