class_docstr: Test how very generic handlers are dispatched to.
class_docstr_tok: ["Test","how","very","generic","handlers","are","dispatched","to","."]
code: def app(self, app):
      @app.route("/custom")
      def do_custom():
          raise self.Custom()
  
      @app.route("/error")
      def do_error():
          raise KeyError()
  
      @app.route("/abort")
      def do_abort():
          flask.abort(500)
  
      @app.route("/raise")
      def do_raise():
          raise InternalServerError()
  
      app.config["PROPAGATE_EXCEPTIONS"] = False
      return app
  
file_path: flask/tests/test_user_error_handler.py
imports: import pytest
  from werkzeug.exceptions import Forbidden
  from werkzeug.exceptions import HTTPException
  from werkzeug.exceptions import InternalServerError
  from werkzeug.exceptions import NotFound
  import flask
label_desc: Use image node_id 1 for calling the TestGenericHandlers obj's underlying member method code with example usage: obj.app(app) and returns: app