Skip to main content

ErrorClassification

Trait ErrorClassification 

Source
pub trait ErrorClassification {
    // Required methods
    fn retryable(&self) -> bool;
    fn effect_may_have_happened(&self) -> bool;
    fn user_message_key(&self) -> &'static str;
    fn severity(&self) -> ErrorSeverity;
    fn reconciliation_required(&self) -> bool;
}
Expand description

Answers the classification questions of spec §24 for an error.

Required Methods§

Source

fn retryable(&self) -> bool

May the whole operation be retried without further analysis?

Source

fn effect_may_have_happened(&self) -> bool

May a side effect have happened despite the error?

Source

fn user_message_key(&self) -> &'static str

Key of a user-safe message in the application’s copy catalog.

Source

fn severity(&self) -> ErrorSeverity

Operational severity.

Source

fn reconciliation_required(&self) -> bool

Must a reconciliation job run before the case is trusted again?

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§