-
-
Notifications
You must be signed in to change notification settings - Fork 0
Masterror error‐handling wiki
RA edited this page Sep 21, 2025
·
1 revision
This wiki collects step-by-step guides for building reliable error handling in Rust services. Each page is intentionally short and focused so you can jump straight to the section that matches your experience level.
- Rust error handling basics
- Building applications with
masterror - When to reach for
thiserror,anyhow, ormasterror - Patterns and troubleshooting
-
Start with the basics if you are new to
Result<T, E>and the?operator. - Follow the application guide to design domain-specific error types with consistent wire responses.
-
Read the comparison to understand how
masterrorcomplementsthiserrorandanyhowinstead of replacing them outright. - Review patterns and troubleshooting when you need concrete recipes for mapping third-party errors, logging, and testing.
Each page contains runnable examples. Copy them into a new binary crate or an
examples/ folder, run cargo run, and experiment.
-
README.mdanddocs.rs/masterrorfor API reference and feature lists. -
masterror-deriveto explore the derive macro internals and advanced formatting capabilities. -
masterror-templatefor the shared template parser used by the derive macros.
Feedback and suggestions are welcome — open an issue or discussion on GitHub.