Skip to main content

error

Attribute Macro error 

Source
#[error]
Expand description

Declare the module’s error domain from an enum with explicit discriminants (the stable error codes). The enum must implement std::fmt::Display, which supplies the runtime message; each variant’s doc comment is the documented default message.