forked from orbit-oss/flask
Update docstring for errorhandler() (#2070)
This commit is contained in:
parent
2b8fef4fe7
commit
cb30a3b562
1 changed files with 2 additions and 1 deletions
|
|
@ -1153,7 +1153,8 @@ class Flask(_PackageBoundObject):
|
||||||
that do not necessarily have to be a subclass of the
|
that do not necessarily have to be a subclass of the
|
||||||
:class:`~werkzeug.exceptions.HTTPException` class.
|
:class:`~werkzeug.exceptions.HTTPException` class.
|
||||||
|
|
||||||
:param code: the code as integer for the handler
|
:param code_or_exception: the code as integer for the handler, or
|
||||||
|
an arbitrary exception
|
||||||
"""
|
"""
|
||||||
def decorator(f):
|
def decorator(f):
|
||||||
self._register_error_handler(None, code_or_exception, f)
|
self._register_error_handler(None, code_or_exception, f)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue