AzError

Trait AzError 

Source
pub trait AzError:
    Copy
    + Eq
    + Display {
    const CLASS: ErrorClass;

    // Required method
    fn code(&self) -> u16;

    // Provided methods
    fn os_code(&self) -> Option<u32> { ... }
    fn is_retryable(&self) -> bool { ... }
}
Expand description

Trait that helps with making sure all errors use the same format

Required Associated Constants§

Required Methods§

Source

fn code(&self) -> u16

Provided Methods§

Source

fn os_code(&self) -> Option<u32>

Source

fn is_retryable(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§