def handle_validation_error(self, error, bundle_errors):
error_str = six.text_type(error)<EOL>error_msg = self.help.format(error_msg=error_str) if self.help else error_str<EOL>msg = {self.name: error_msg}<EOL>if current_app.config.get("<STR_LIT>", False) or bundle_errors:<EOL><INDENT>return error, msg<EOL><DEDENT>flask_restful.abort(<NUM_LIT>, message=msg)<EOL>
Called when an error is raised while parsing. Aborts the request
        with a 400 status and an error message

        :param error: the error that was raised
        :param bundle_errors: do not abort when first error occurs, return a
            dict with the name of the argument and the error message to be
            bundled