pub type ErrorHandler = Box<dyn Fn(&ErrorEvent) + Send + Sync>;
Type alias for error handler
pub struct ErrorHandler(/* private fields */);