mirror of
https://github.com/pkkid/python-plexapi
synced 2024-12-18 07:53:11 +00:00
dd91ae41f4
* Use Unauthorized exception in server, myplex, client
31 lines
585 B
Python
31 lines
585 B
Python
# -*- 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
|