docs: def build_error_handler(*tasks):
          """
          Provides a generic error function that packages a flask_buzz exception
          so that it can be handled nicely by the flask error handler::
  
              app.register_error_handler(
                  FlaskBuzz, FlaskBuzz.build_error_handler(),
              )
  
          Additionally, extra tasks may be applied to the error prior to
          packaging::
  
              app.register_error_handler(
                  FlaskBuzz,
                  build_error_handler(print, lambda e: foo(e)),
              )
  
          This latter example will print the error to stdout and also call the
          foo() function with the error prior to packaing it for flask's handler
          """
  
          def _handler(error, tasks=[]):
              [t(error) for t in tasks]
              return error.jsonify(), error.status_code, error.headers
  
          return functools.partial(_handler, tasks=tasks)