python-plexapi/plexapi/exceptions.py

29 lines
634 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
2017-01-29 21:22:48 +00:00
class NotImplementedError(PlexApiException):
pass