Struct ruc::err::SimpleError
source · pub struct SimpleError<E: Debug + Display + Send + 'static> { /* private fields */ }
Expand description
A pre-impled Error
Implementations§
Trait Implementations§
source§impl<E: Debug + Display + Send + 'static> RucError for SimpleError<E>
impl<E: Debug + Display + Send + 'static> RucError for SimpleError<E>
source§fn get_top_msg(&self) -> String
fn get_top_msg(&self) -> String
get the top-level error message
source§fn get_lowest_msg(&self) -> String
fn get_lowest_msg(&self) -> String
get the final(lowest) error message
source§fn get_lowest_err(&self) -> &dyn RucError
fn get_lowest_err(&self) -> &dyn RucError
Get the original error object,
used to match its original type by
Any
.source§fn get_top_msg_with_dbginfo(&self) -> String
fn get_top_msg_with_dbginfo(&self) -> String
“error msg” + “debug info”
source§fn lowest_type_id(&self) -> TypeId
fn lowest_type_id(&self) -> TypeId
get the type of the lowest(bottom) error
source§fn lowest_is_type(&self, e: &dyn Any) -> bool
fn lowest_is_type(&self, e: &dyn Any) -> bool
check the type of the lowest error
source§fn contains_type(&self, e: &dyn Any) -> bool
fn contains_type(&self, e: &dyn Any) -> bool
check if an error exists in the error chain
source§fn msg_has_overloop(&self, another: &dyn RucError) -> bool
fn msg_has_overloop(&self, another: &dyn RucError) -> bool
check if any node from the error_chain matches the given error