1use crate::Error; 2use core::error; 3 4/// An exception. 5pub trait Exception: From<Error> + error::Error { 6 /// Returns `true` if an error is critical and not recoverable. 7 fn is_critical(&self) -> bool; 8}