mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-18 11:16:37 +00:00
Initial Configuration Push
This commit is contained in:
63
deps/pychromecast/error.py
vendored
Normal file
63
deps/pychromecast/error.py
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
"""
|
||||
Errors to be used by PyChromecast.
|
||||
"""
|
||||
|
||||
|
||||
class PyChromecastError(Exception):
|
||||
""" Base error for PyChromecast. """
|
||||
pass
|
||||
|
||||
|
||||
class NoChromecastFoundError(PyChromecastError):
|
||||
"""
|
||||
When a command has to auto-discover a Chromecast and cannot find one.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class MultipleChromecastsFoundError(PyChromecastError):
|
||||
"""
|
||||
When getting a singular chromecast results in getting multiple chromecasts.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class ChromecastConnectionError(PyChromecastError):
|
||||
""" When a connection error occurs within PyChromecast. """
|
||||
pass
|
||||
|
||||
|
||||
class LaunchError(PyChromecastError):
|
||||
""" When an app fails to launch. """
|
||||
pass
|
||||
|
||||
|
||||
class PyChromecastStopped(PyChromecastError):
|
||||
""" Raised when a command is invoked while the Chromecast's socket_client
|
||||
is stopped.
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class NotConnected(PyChromecastError):
|
||||
"""
|
||||
Raised when a command is invoked while not connected to a Chromecast.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class UnsupportedNamespace(PyChromecastError):
|
||||
"""
|
||||
Raised when trying to send a message with a namespace that is not
|
||||
supported by the current running app.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class ControllerNotRegistered(PyChromecastError):
|
||||
"""
|
||||
Raised when trying to interact with a controller while it is
|
||||
not registered with a ChromeCast object.
|
||||
"""
|
||||
pass
|
Reference in New Issue
Block a user