Module arti_client::err::hint
source Β· Expand description
Facility for error-hinting
Modules§
- seal πnon-public module, to implement a βsealedβ trait.
Macros§
- hintable_impl πDeclare one or more error types as having hints.
Traits§
- An error that can provide additional information about how to solve itself.
- HintableErrorImpl πTrait for an error that can provide a hint directly.
Functions§
- best_hint πReturn the best hint possible from
err
, by looking for the first error in the chain defined byerr
and its sources that provides a value for HintableErrorImpl::hint. - If possible, downcast this
StdError
to one of the implementations ofHintableErrorImpl
.