First release

This commit is contained in:
DevilXD committed 2021-12-03 17:48:51 +01:00
commit fac2788e4b
12 files changed
+1164

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
class MinerException(Exception):
def __init__(self, *args: object):
if args:
super().__init__(*args)
else:
super().__init__("Unknown miner error")
class RequestException(MinerException):
def __init__(self, *args: object):
if args:
super().__init__(*args)
else:
super().__init__("Unknown error during request")
class LoginException(RequestException):
def __init__(self, *args: object):
if args:
super().__init__(*args)
else:
super().__init__("Unknown error during login")
class CaptchaRequired(LoginException):
def __init__(self):
super().__init__("Captcha is required")
class IncorrectCredentials(LoginException):
def __init__(self):
super().__init__("Incorrect username or password")