logos.lang.error
Module lang · package logos-lang
Traits
traitError
trait Error
Root error trait with chained-cause (source()) introspection.
Implemented by: ParseIntError TryFromIntError ParseFloatError IoError
Functions
fnerror_chain_len
fn error_chain_len(e: &dyn Error) -> i32
Counts links in the error chain starting at e (1 if e has no source, 2 if
it sources one error, ...).
Walks until source returns None; bounded by the chain’s depth — caller’s
responsibility if cycles are introduced via source().