Trait error_support::ApplicationErrorReporter

source ·
pub trait ApplicationErrorReporter: Sync + Send {
    // Required methods
    fn report_error(&self, type_name: String, message: String);
    fn report_breadcrumb(
        &self,
        message: String,
        module: String,
        line: u32,
        column: u32
    );
}
Expand description

Application error reporting trait

The application that’s consuming application-services implements this via a UniFFI callback interface, then calls set_application_error_reporter() to setup a global ApplicationErrorReporter.

Required Methods§

source

fn report_error(&self, type_name: String, message: String)

Send an error report to a Sentry-like error reporting system

type_name should be used to group errors together

source

fn report_breadcrumb( &self, message: String, module: String, line: u32, column: u32 )

Send a breadcrumb to a Sentry-like error reporting system

Implementors§