11 stable releases
1.0.10 | Aug 3, 2024 |
---|---|
1.0.9 | Jul 22, 2024 |
1.0.8 | Jul 21, 2024 |
1.0.4 | Jul 18, 2024 |
1.0.2 | May 5, 2024 |
#28 in #err
Used in 3 crates
(2 directly)
32KB
648 lines
Majordome Errors Enums
#[derive(MajordomeError)]
#[err(prefix = "errors.gg.wls.")]
pub enum AuthError {
#[err(code="invalid_token", msg="Invalid token", status=401)]
InvalidToken,
#[err(code="unknown_event", msg="Unknown event {id}", status=404)]
UnknownEvent {id: String},
#[err(code="not_enough_players", msg="Not enough players (required: {required}, actual: {actual})", status=400)]
NotEnoughPlayers{required: u32, actual: u32},
}
Dependencies
~1.5MB
~37K SLoC