[][src]Trait embedded_error_chain::ErrorCategory

pub trait ErrorCategory: Copy + Into<ErrorCode> + From<ErrorCode> + Debug {
    type L0: ErrorCategory;
    type L1: ErrorCategory;
    type L2: ErrorCategory;
    type L3: ErrorCategory;
    type L4: ErrorCategory;
    type L5: ErrorCategory;

    const NAME: &'static str;
    fn chainable_category_formatters() -> &'static [ErrorCodeFormatter] { ... }
}

A trait that implements the logic for debug printing and ErrorCode conversion. It also specifies the links to other error categories that allows Errors of different types to be chained.

Note: Only up to 6 linked error categories are allowed.

Associated Types

type L0: ErrorCategory

Type of linked error category 0.

type L1: ErrorCategory

Type of linked error category 1.

type L2: ErrorCategory

Type of linked error category 2.

type L3: ErrorCategory

Type of linked error category 3.

type L4: ErrorCategory

Type of linked error category 4.

type L5: ErrorCategory

Type of linked error category 5.

Loading content...

Associated Constants

const NAME: &'static str

Loading content...

Provided methods

Loading content...

Implementors

impl ErrorCategory for Unused[src]

type L0 = Unused

type L1 = Unused

type L2 = Unused

type L3 = Unused

type L4 = Unused

type L5 = Unused

Loading content...