python-sdk/happydomain/error.py

9 lines
238 B
Python
Raw Normal View History

2023-04-13 01:10:33 +00:00
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