23 行
341 B
Python
23 行
341 B
Python
class YandexMusicError(Exception):
|
|
pass
|
|
|
|
|
|
class InvalidToken(YandexMusicError):
|
|
pass
|
|
|
|
|
|
class Unauthorized(YandexMusicError):
|
|
pass
|
|
|
|
class NetworkError(YandexMusicError):
|
|
pass
|
|
|
|
|
|
class BadRequest(NetworkError):
|
|
pass
|
|
|
|
|
|
class TimedOut(NetworkError):
|
|
def __init__(self):
|
|
super(TimedOut, self).__init__('Timed out')
|