pub trait ErrorHandler: UnwindSafe + RefUnwindSafe + Copy + Send + 'static {
    fn handle_error(&self, port: MessagePort, error: Error);
    fn handle_error_sync(&self, error: Error) -> WireSyncReturnStruct;
}
Expand description

A handler model that sends back the error to a Dart SendPort.

For example, instead of using the default ReportDartErrorHandler, you could implement your own handler that logs each error to stderr, or to an external logging service.

Required Methods§

The default error handler.

Special handler only used for synchronous code.

Implementors§