[][src]Macro tophat::glitch_code

macro_rules! glitch_code {
    () => { ... };
    ($code:expr) => { ... };
    ($code:expr, $context:expr) => { ... };
}

This one panics!

Convenience macro for creating a Glitch.

glitch_code!(): 500 glitch_code!(400): 400 glitch_code!(400, "custom error"): 400 with message in body