python-plexapi/plexapi/exceptions.py

26 lines
579 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
2014-12-29 03:21:58 +00:00
class PlexApiException(Exception):
""" Base class for all PlexAPI exceptions. """
2014-12-29 03:21:58 +00:00
pass
class BadRequest(PlexApiException):
""" An invalid request, generally a user error. """
2014-12-29 03:21:58 +00:00
pass
class NotFound(PlexApiException):
""" Request media item or device is not found. """
2014-12-29 03:21:58 +00:00
pass
class UnknownType(PlexApiException):
""" Unknown library type. """
2014-12-29 03:21:58 +00:00
pass
2015-02-24 03:42:29 +00:00
class Unsupported(PlexApiException):
""" Unsupported client request. """
pass
class Unauthorized(PlexApiException):
""" Invalid username or password. """
2015-02-24 03:42:29 +00:00
pass