2019-09-19 16:29:26 -05:00
|
|
|
"""Errors for the Plex component."""
|
|
|
|
from homeassistant.exceptions import HomeAssistantError
|
|
|
|
|
|
|
|
|
|
|
|
class PlexException(HomeAssistantError):
|
|
|
|
"""Base class for Plex exceptions."""
|
|
|
|
|
|
|
|
|
|
|
|
class NoServersFound(PlexException):
|
|
|
|
"""No servers found on Plex account."""
|
|
|
|
|
|
|
|
|
|
|
|
class ServerNotSpecified(PlexException):
|
|
|
|
"""Multiple servers linked to account without choice provided."""
|
2020-03-28 23:02:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
class ShouldUpdateConfigEntry(PlexException):
|
|
|
|
"""Config entry data is out of date and should be updated."""
|
2022-03-17 15:57:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
class MediaNotFound(PlexException):
|
|
|
|
"""Requested media was not found."""
|