2019-05-07 06:02:21 +09:00
|
|
|
class YandexMusicError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidToken(YandexMusicError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class Unauthorized(YandexMusicError):
|
|
|
|
pass
|
|
|
|
|
2019-05-10 00:28:46 +09:00
|
|
|
|
2019-05-07 06:02:21 +09:00
|
|
|
class NetworkError(YandexMusicError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class BadRequest(NetworkError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class TimedOut(NetworkError):
|
|
|
|
def __init__(self):
|
|
|
|
super(TimedOut, self).__init__('Timed out')
|