Skip to content
Myr

Update docstring for errorhandler() (#2070)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Clenimar Filemon · committed by Markus Unterwaditzer · parent 2b8fef4 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:flask/app.py+2 added-1 removed
1151 unmodified lines
1152 One can now additionally also register custom exception types1153 that do not necessarily have to be a subclass of the1154 :class:`~werkzeug.exceptions.HTTPException` class.11551156 :param code: the code as integer for the handler1156 :param code_or_exception: the code as integer for the handler, or1157 an arbitrary exception1158 """1159 def decorator(f):1160 self._register_error_handler(None, code_or_exception, f)1161 return f
851 unmodified lines