mirror of https://github.com/home-assistant/core
24 lines
568 B
Python
24 lines
568 B
Python
"""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."""
|
|
|
|
|
|
class ShouldUpdateConfigEntry(PlexException):
|
|
"""Config entry data is out of date and should be updated."""
|
|
|
|
|
|
class MediaNotFound(PlexException):
|
|
"""Requested media was not found."""
|