mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-27 15:39:38 +00:00
28 lines
720 B
Python
28 lines
720 B
Python
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")
|