pub fn set_error_handler(handler: fn(_: &str))
Sets the error handler
Once an error handler is set, it cannot be removed.