| Crates.io | error-enum-macros |
| lib.rs | error-enum-macros |
| version | 1.0.0-alpha.4 |
| created_at | 2025-12-09 08:05:07.759988+00 |
| updated_at | 2025-12-10 12:50:30.285093+00 |
| description | Provide a easy way to define an enum that represents errors with error codes, document comments and several other functionalities. |
| homepage | |
| repository | https://github.com/TheVeryDarkness/error-enum |
| max_upload_size | |
| id | 1975012 |
| size | 60,646 |
Used to generate documentation comments and Display implementation for tree-structured error types.
It also provides error rendering capabilities with colorful and detailed error messages, via implementing those traits or structs from crates listed below:
ariadne::Report (if ariadne feature is enabled)annotate_snippets::display_list::DisplayList (if annotate-snippets feature is enabled)codespan_reporting::diagnostic::Diagnostic and codespan_reporting::files::SimpleFiles (if codespan-reporting feature is enabled)miette::Diagnostic (if miette feature is enabled)| Concept | Example |
|---|---|
| Number | 1234 |
| Code | E1234 |
| Kind | error |
| Kind Acronym | E |
| Kind | error[E1234] |
| Message Prefix | error[E1234]: |
| Description | Access denied. |
| Message | error[E1234]: Access denied. |