Method: flask.blueprints.Blueprint.app_errorhandler
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
403 (1)
 Blueprint.app_errorhandler.
1@setupmethod
2    def app_errorhandler(
3        self, code: type[Exception] | int
4    ) -> t.Callable[[T_error_handler], T_error_handler]:
5        """Like :meth:`errorhandler`, but for every request, not only those handled by
6        the blueprint. Equivalent to :meth:`.Flask.errorhandler`.
7        """
8
9        def decorator(f: T_error_handler) -> T_error_handler:
10            self.record_once(lambda s: s.app.errorhandler(code)(f))
11            return f
12
13        return decorator