introduce get_error_handler