INNER CODE UNIT · Python

handle

falconry/falcon · falcon/app.py:971

                        def handle(req, resp, ex, params):
                            # TODO: Log the error
                            # Convert to an instance of falcon.HTTPError
                            raise falcon.HTTPError(falcon.HTTP_792)

                If an iterable of exception types is specified instead of
                a single type, the handler must be explicitly specified.

        .. versionchanged:: 3.0

            The error handler is now selected by the most-specific matching
            error class, rather than the most-recently registered matching error
            class.

        """

        def wrap_old_handler(
            old_handler: Callable[..., Any],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…