You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
683 B
37 lines
683 B
1 month ago
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
|
||
|
class PlexApiException(Exception):
|
||
|
""" Base class for all PlexAPI exceptions. """
|
||
|
pass
|
||
|
|
||
|
|
||
|
class BadRequest(PlexApiException):
|
||
|
""" An invalid request, generally a user error. """
|
||
|
pass
|
||
|
|
||
|
|
||
|
class NotFound(PlexApiException):
|
||
|
""" Request media item or device is not found. """
|
||
|
pass
|
||
|
|
||
|
|
||
|
class UnknownType(PlexApiException):
|
||
|
""" Unknown library type. """
|
||
|
pass
|
||
|
|
||
|
|
||
|
class Unsupported(PlexApiException):
|
||
|
""" Unsupported client request. """
|
||
|
pass
|
||
|
|
||
|
|
||
|
class Unauthorized(BadRequest):
|
||
|
""" Invalid username/password or token. """
|
||
|
pass
|
||
|
|
||
|
|
||
|
class TwoFactorRequired(Unauthorized):
|
||
|
""" Two factor authentication required. """
|
||
|
pass
|