Trait ForgeError

Source
pub trait ForgeError:
    Error
    + Send
    + Sync {
    // Required methods
    fn kind(&self) -> &'static str;
    fn caption(&self) -> &'static str;

    // Provided methods
    fn is_retryable(&self) -> bool { ... }
    fn is_fatal(&self) -> bool { ... }
    fn status_code(&self) -> u16 { ... }
    fn exit_code(&self) -> i32 { ... }
}
Expand description

Base trait for all custom error variants.

Required Methods§

Source

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

Source

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

Provided Methods§

Source

fn is_retryable(&self) -> bool

Source

fn is_fatal(&self) -> bool

Source

fn status_code(&self) -> u16

Source

fn exit_code(&self) -> i32

Implementors§