def build_error_handler_for_flask_restplus(*tasks):
        """
        Provides a generic error function that packages a flask_buzz exception
        so that it can be handled by the flask-restplus error handler::

            @api.errorhandler(SFBDError)
            def do_it(error):
                return SFBDError.build_error_handler_for_flask_restplus()()

        or::

            api.errorhandler(SFBDError)(
                SFBDError.build_error_handler_for_flask_restplus()
            )

        Flask-restplus handles exceptions differently than Flask, and it is
        awkward. For further reading on why special functionality is needed for
        flask-restplus, observe and compare:

            * http://flask.pocoo.org/docs/0.12/patterns/apierrors/
            * http://flask-restplus.readthedocs.io/en/stable/errors.html#

        Additionally, extra tasks may be applied to the error prior to
        packaging as in ``build_error_handler``
        """
        def _handler(error, tasks=[]):
            [t(error) for t in tasks]
            response = error.jsonify()
            return flask.json.loads(response.get_data()), response.status_code

        return functools.partial(_handler, tasks=tasks)
Provides a generic error function that packages a flask_buzz exception
        so that it can be handled by the flask-restplus error handler::

            @api.errorhandler(SFBDError)
            def do_it(error):
                return SFBDError.build_error_handler_for_flask_restplus()()

        or::

            api.errorhandler(SFBDError)(
                SFBDError.build_error_handler_for_flask_restplus()
            )

        Flask-restplus handles exceptions differently than Flask, and it is
        awkward. For further reading on why special functionality is needed for
        flask-restplus, observe and compare:

            * http://flask.pocoo.org/docs/0.12/patterns/apierrors/
            * http://flask-restplus.readthedocs.io/en/stable/errors.html#

        Additionally, extra tasks may be applied to the error prior to
        packaging as in ``build_error_handler``