aerro 0.6.4

Cross-service gRPC error framework for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use aerro;

#[derive(Debug, aerro::Aerro)]
pub enum E {
    #[aerro(category = Business, code = NotFound, error = "x not found")]
    NotFound,

    #[aerro(category = Validation, code = InvalidArgument)]
    Bad(String),

    #[aerro(category = System, code = Internal)]
    Boom,
}

fn main() {
    let _ = E::NotFound;
}