Skip to main content

DetailedError

Trait DetailedError 

Source
pub trait DetailedError: Error {
    // Required methods
    fn error_code(&self) -> Cow<'static, str>;
    fn error_system(&self) -> Option<Cow<'static, str>>;
    fn error_request_id(&self) -> Option<Cow<'static, str>>;
}
Expand description

Error trait for values that carry structured output-envelope metadata.

Required Methods§

Source

fn error_code(&self) -> Cow<'static, str>

Stable error code.

Source

fn error_system(&self) -> Option<Cow<'static, str>>

Optional backend/system id.

Source

fn error_request_id(&self) -> Option<Cow<'static, str>>

Optional backend request id.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§