error

Attribute Macro error 

Source
#[error]
Expand description

Attribute macro version of error_type that preserves documentation comments.

This allows using regular Rust doc comments with error types:

/// Documentation for MyError
#[ohno::error]
struct MyError;

See the main ohno crate documentation for detailed usage examples.