Package coprs :: Package rest_api :: Module util :: Class MyArg
[hide private]
[frames] | no frames]

type MyArg

source code


Instance Methods [hide private]
 
handle_validation_error(self, error, bundle_errors)
Called when an error is raised while parsing.
source code

Inherited from flask_restful.reqparse.Argument: __init__, convert, parse, source

Method Details [hide private]

handle_validation_error(self, error, bundle_errors)

source code 
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

Overrides: flask_restful.reqparse.Argument.handle_validation_error
(inherited documentation)