bigerror

Crates.iobigerror
lib.rsbigerror
version0.8.1
sourcesrc
created_at2023-05-12 19:58:41.551829
updated_at2024-04-01 18:19:26.604367
descriptionhandle big errors ¯\_(ツ)_/¯
homepage
repository
max_upload_size
id863255
size61,429
Mikhail Katychev (mkatychev)

documentation

README

# bigerror 🍅🍆🥒 Errors should be composed of reusable parts to make readability consistent. ## example What if handling an error also produces an error? code: https://github.com/knox-networks/bigerror/blob/51686e4e42397f4275335a54286210e705ab8ea7/src/lib.rs#L822-L838 command (try it yourself): ```sh $ cargo test -- test::error_in_error_handling --nocapture ``` output: image ## extra If [`just`](https://just.systems/) is installed: `just printerr-all` to visualize all unit test errors ```sql -- This error crate is intended to -- enhance error-stack: -- https://hash.dev/blog/announcing-error-stack -- error-stack `is_fantastic && does_things.in(|_a| functional(approach))` but -- `error_stack::Report::change_context` can make code noisy when used often -- -- ...so why not auto implement a bunch of `From for MyError`? -- and provide fundamental building blocks such as `bigerror::NotFound` -- to express common causes for errors and imply correlation? CREATE CRATE IF NOT EXISTS bigerror ( error BIGERROR NOT NULL, ); ```
Commit count: 0

cargo fmt