Add Exceptions

This commit is contained in:
thecosmos
2019-05-21 01:00:29 +05:30
parent 57b810a8c4
commit 2ceb308fae
3 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
class HttpException(Exception):
"""Base Exception class representing a HTTP exception."""
class Unauthorized(HttpException):
"""A HTTP Exception raised when user is not authorized."""