Added docstring
This commit is contained in:
parent
11e64cf952
commit
756f18d853
1 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,11 @@ from werkzeug.exceptions import HTTPException
|
|||
|
||||
class JSONExceptionHandler(object):
|
||||
|
||||
"""
|
||||
A class to be registered as a Flask error handler,
|
||||
converts error codes into a JSON response
|
||||
"""
|
||||
|
||||
def __init__(self, app=None):
|
||||
if app:
|
||||
self.init_app(app)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue