#[derive(Error)]
{
// Attributes available to this derive:
#[error]
#[from]
#[source]
}
Expand description
Re-export the derive macro so users can use nexcore_error::Error;
Derive Display and std::error::Error for an enum or struct.
§Attributes
#[error("format string")]— Display format for the variant/struct#[error(transparent)]— Forward Display and source to inner type#[from]on a field — GenerateFrom<FieldType>impl#[source]on a field — Use asError::source()return value