Exception

Trait Exception 

Source
pub trait Exception: From<Error> + Error {
    // Required method
    fn is_critical(&self) -> bool;
}
Expand description

An exception.

Required Methods§

Source

fn is_critical(&self) -> bool

Returns true if an error is critical and not recoverable.

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§