2016-03-21 04:26:02 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2014-12-29 03:21:58 +00:00
|
|
|
|
2016-10-19 15:39:18 +00:00
|
|
|
class PlexApiException(Exception):
|
2017-01-23 05:15:51 +00:00
|
|
|
""" Base class for all PlexAPI exceptions. """
|
2014-12-29 03:21:58 +00:00
|
|
|
pass
|
|
|
|
|
2016-10-19 15:39:18 +00:00
|
|
|
class BadRequest(PlexApiException):
|
2017-01-23 05:15:51 +00:00
|
|
|
""" An invalid request, generally a user error. """
|
2014-12-29 03:21:58 +00:00
|
|
|
pass
|
|
|
|
|
2016-10-19 15:39:18 +00:00
|
|
|
class NotFound(PlexApiException):
|
2017-01-23 05:15:51 +00:00
|
|
|
""" Request media item or device is not found. """
|
2014-12-29 03:21:58 +00:00
|
|
|
pass
|
|
|
|
|
2016-10-19 15:39:18 +00:00
|
|
|
class UnknownType(PlexApiException):
|
2017-01-23 05:15:51 +00:00
|
|
|
""" Unknown library type. """
|
2014-12-29 03:21:58 +00:00
|
|
|
pass
|
2015-02-24 03:42:29 +00:00
|
|
|
|
2016-10-19 15:39:18 +00:00
|
|
|
class Unsupported(PlexApiException):
|
2017-01-23 05:15:51 +00:00
|
|
|
""" Unsupported client request. """
|
2016-10-19 15:39:18 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
class Unauthorized(PlexApiException):
|
2017-01-23 05:15:51 +00:00
|
|
|
""" 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
|