12345678910111213141516171819 |
- """
- flaskbb.exceptions
- ~~~~~~~~~~~~~~~~~~
- Exceptions implemented by FlaskBB.
- :copyright: (c) 2015 by the FlaskBBB Team.
- :license: BSD, see LICENSE for more details
- """
- from werkzeug.exceptions import HTTPException, Forbidden
- class FlaskBBError(HTTPException):
- "Root exception for FlaskBB"
- description = "An internal error has occured"
- class AuthorizationRequired(FlaskBBError, Forbidden):
- description = "Authorization is required to access this area."
|