pub struct Error { /* private fields */ }Expand description
RustHound error’s type
Implementations§
source§impl Error
impl Error
sourcepub fn new(kind: Kind) -> Error
pub fn new(kind: Kind) -> Error
Construct an error from scratch
You can chain this method to with, as shown below.
Error::new(Kind::Other).with()pub fn desc<D: Into<String>>(self, desc: D) -> Error
pub fn new_login() -> Error
pub fn new_host() -> Error
pub fn new_ldap_error(error: LdapError) -> Error
sourcepub fn find_source<E: StdError + 'static>(&self) -> Option<&E>
pub fn find_source<E: StdError + 'static>(&self) -> Option<&E>
Backtrace error source to find a cause matching given type
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()