pub trait ErrorDiagnostic: StdError + 'static {
// Required method
fn signature(&self) -> &'static str;
// Provided methods
fn typ(&self) -> ResultType { ... }
fn tag(&self) -> Option<&Bytes> { ... }
fn service(&self) -> Option<&'static str> { ... }
fn backtrace(&self) -> Option<&Backtrace> { ... }
}Expand description
Provides diagnostic information for errors.
It enables classification, service attribution, and debugging context.
Required Methods§
Provided Methods§
Sourcefn typ(&self) -> ResultType
fn typ(&self) -> ResultType
Returns the classification of the result (e.g. success, client error, service error).
Sourcefn tag(&self) -> Option<&Bytes>
fn tag(&self) -> Option<&Bytes>
Returns an optional tag associated with this error.
The tag is user-defined and can be used for additional classification or correlation.