First release
This commit is contained in:
commit
fac2788e4b
12 files changed
+1164
No files matched your search
@@ -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")
|
||||
Reference in new issue
Block a user