Trait ruc::err::RucError[][src]

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 { ... } }

the major trait defination

Required methods

fn get_current_error(&self) -> String[src]

convert the error of current level to string

fn get_lowest_error(&self) -> String[src]

convert the error of lowest level to string

Loading content...

Provided methods

fn eq(&self, another: &dyn RucError) -> bool[src]

compare two object

fn eq_any(&self, another: &dyn RucError) -> bool[src]

check if any node from the error_chain matches the given error

fn cause(&mut self) -> Option<Box<dyn RucError>>[src]

point to a error which caused current error

fn cause_ref(&self) -> Option<&dyn RucError>[src]

a ref version of cause()

fn display_chain(&self) -> String[src]

generate the final error msg

Loading content...

Implementors

impl<E: Debug + Display + Send + 'static> RucError for SimpleError<E>[src]

fn get_current_error(&self) -> String[src]

get the final(lowest) error

fn get_lowest_error(&self) -> String[src]

get the final(lowest) error

Loading content...