pub trait RucError: Display + Debug + Send {
fn get_current_error(&self) -> String;
fn get_lowest_error(&self) -> String;
fn eq(&self, another: &dyn RucError) -> bool { ... }
fn eq_any(&self, another: &dyn RucError) -> bool { ... }
fn cause(&mut self) -> Option<Box<dyn RucError>> { ... }
fn cause_ref(&self) -> Option<&dyn RucError> { ... }
fn display_chain(&self) -> String { ... }
}
Expand description
the major trait defination
Required methods
fn get_current_error(&self) -> String
fn get_current_error(&self) -> String
convert the error of current level to string
fn get_lowest_error(&self) -> String
fn get_lowest_error(&self) -> String
convert the error of lowest level to string
Provided methods
check if any node from the error_chain matches the given error
fn display_chain(&self) -> String
fn display_chain(&self) -> String
generate the final error msg