forked from orbit-oss/flask
document _get_exc_class_and_code params
This commit is contained in:
parent
53f5fd234b
commit
d8d74b0cc8
1 changed files with 5 additions and 1 deletions
|
|
@ -1270,7 +1270,11 @@ class Flask(_PackageBoundObject):
|
|||
|
||||
@staticmethod
|
||||
def _get_exc_class_and_code(exc_class_or_code):
|
||||
"""Ensure that we register only exceptions as handler keys"""
|
||||
"""Ensure that we register only exceptions as handler keys
|
||||
|
||||
:param exc_class_or_code: the class for the exception, or
|
||||
exception code as integer
|
||||
"""
|
||||
if isinstance(exc_class_or_code, integer_types):
|
||||
exc_class = default_exceptions[exc_class_or_code]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue