First SDK version

This commit is contained in:
nemunaire 2023-04-13 03:10:33 +02:00
parent 952e9d06b0
commit 7aaf0e2a96
9 changed files with 532 additions and 2 deletions

8
happydomain/error.py Normal file
View 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