oopsie 0.1.0-rc.19

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
14
15
16
17
18
Controls the suffix appended to generated selector names. Structs default to a
`"Oopsie"` suffix (e.g. `QueryError` → selector `QueryOopsie`); enums default to
no suffix. The selector base name is always the variant or struct name with a
trailing `Error` stripped first.

Forms: `suffix`, `suffix(true)`, `suffix(false)`, `suffix("X")`, `suffix = "X"`.

### Example
```
#[oopsie::oopsie]
#[oopsie(suffix("Ctx"))]
pub struct QueryError {
    query: String,
}

let err = QueryCtx { query: "SELECT 1".to_owned() }.build();
assert_eq!(err.to_string(), "QueryError");
```