pub fn set_error_handler<F>(f: F) -> Result<(), Error>where F: Fn(Error) + Send + Sync + 'static,
Set global error handler.