First SDK version
This commit is contained in:
parent
952e9d06b0
commit
7aaf0e2a96
9 changed files with 532 additions and 2 deletions
8
happydomain/error.py
Normal file
8
happydomain/error.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
class HappyError(BaseException):
|
||||
|
||||
def __init__(self, status_code, errmsg, href=""):
|
||||
self.errmsg = errmsg
|
||||
self.status_code = status_code
|
||||
|
||||
def __str__(self):
|
||||
return str(self.status_code) + ": " + self.errmsg
|
Loading…
Add table
Add a link
Reference in a new issue