Trait ErrorReporter

pub trait ErrorReporter {
    // Required methods
    fn report_error(&self, error: &ContextualError);
    fn report_error_with_handler<F>(&self, error: &ContextualError, handler: F)
       where F: FnOnce(&ContextualError);
}
Expand description

Error reporting interface

Required Methods§

fn report_error(&self, error: &ContextualError)

Report an error

fn report_error_with_handler<F>(&self, error: &ContextualError, handler: F)

Report an error with custom handling

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§