Trait arti_client::err::hint::HintableErrorImpl

source ·
trait HintableErrorImpl: OnlyTheMacroShouldImplementThis__ {
    // Required method
    fn hint_specific(&self) -> Option<ErrorHint<'_>>;
}
Expand description

Trait for an error that can provide a hint directly.

Not defined for errors whose sources may provide a hint.

To implement this trait, you need to provide an impl in this crate, and extend the macro invocation for hintable_impl!. Nothing else is currently supported.

Required Methods§

source

fn hint_specific(&self) -> Option<ErrorHint<'_>>

If possible, provide a hint for how to solve this error.

(This should not check the source of this error or any other error; recursing is the job of best_hint. This is the method that should be implemented for an error type that might have a hint about how to solve that error in particular.)

Implementations on Foreign Types§

source§

impl HintableErrorImpl for Error

Implementors§