File: exceptions.py

package info (click to toggle)
python-ytmusicapi 1.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,412 kB
  • sloc: python: 4,324; sh: 14; makefile: 12
file content (16 lines) | stat: -rw-r--r-- 369 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""custom exception classes for ytmusicapi"""


class YTMusicError(Exception):
    """base error class

    shall only be raised if none of the subclasses below are fitting
    """


class YTMusicUserError(YTMusicError):
    """error caused by invalid usage of ytmusicapi"""


class YTMusicServerError(YTMusicError):
    """error caused by the YouTube Music backend"""