Function aide::gen::on_error

source ·
pub fn on_error(handler: impl Fn(Error) + 'static)
Expand description

Register an error handler in the current thread-local context.

Only one handler is allowed at a time, this function will overwrite the existing one.

Due to the design of the library in some cases errors can be false positives that cannot be avoided.

It is advised not to panic in this handler unless you are interested in the backtrace for a specific error.