oopsie 0.1.0-rc.20

Ergonomic, structured error handling: context selectors, traced errors, and rich colorized reports
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// `module = false` flattens an enum's selectors (normally module-wrapped), so the
// selector is nameable as a bare `Boom`.
use oopsie::Oopsie;

#[derive(Debug, Oopsie)]
pub enum AppError {
    #[oopsie("boom")]
    Boom { code: u8 },
}

fn main() {
    let _ = Boom { code: 0u8 };
}