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

Class 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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

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)