Module hue_api.exceptions

Expand source code
class FailedToSetState(Exception):
    """
    There was an error updating state, usually because a paramter passed to the bridge was malformed or of the wrong type.
    """
    msg = "There was an error updating state"

class FailedToGetState(Exception):
    """
    Failed to fetch light state from the API
    """
    msg = "Failed to fetch state from api"

class UninitializedException(Exception):
    """
    Tried to access the hue bridge before the user (API Key) has been obtained.
    """
    msg = "Hue API has not been initialized yet"

class ButtonNotPressedException(Exception):
    """
    Tried to `create_new_user` without pressing the button on the Hue Bridge
    """
    msg = "Link button was not pressed"

class DevicetypeException(Exception):
    """
    The device at the provided IP address/URL can't be controlled via this API
    """
    msg = "Invalid devicetype"

Classes

class ButtonNotPressedException (*args, **kwargs)

Tried to create_new_user without pressing the button on the Hue Bridge

Expand source code
class ButtonNotPressedException(Exception):
    """
    Tried to `create_new_user` without pressing the button on the Hue Bridge
    """
    msg = "Link button was not pressed"

Ancestors

  • builtins.Exception
  • builtins.BaseException

Class variables

var msg
class DevicetypeException (*args, **kwargs)

The device at the provided IP address/URL can't be controlled via this API

Expand source code
class DevicetypeException(Exception):
    """
    The device at the provided IP address/URL can't be controlled via this API
    """
    msg = "Invalid devicetype"

Ancestors

  • builtins.Exception
  • builtins.BaseException

Class variables

var msg
class FailedToGetState (*args, **kwargs)

Failed to fetch light state from the API

Expand source code
class FailedToGetState(Exception):
    """
    Failed to fetch light state from the API
    """
    msg = "Failed to fetch state from api"

Ancestors

  • builtins.Exception
  • builtins.BaseException

Class variables

var msg
class FailedToSetState (*args, **kwargs)

There was an error updating state, usually because a paramter passed to the bridge was malformed or of the wrong type.

Expand source code
class FailedToSetState(Exception):
    """
    There was an error updating state, usually because a paramter passed to the bridge was malformed or of the wrong type.
    """
    msg = "There was an error updating state"

Ancestors

  • builtins.Exception
  • builtins.BaseException

Class variables

var msg
class UninitializedException (*args, **kwargs)

Tried to access the hue bridge before the user (API Key) has been obtained.

Expand source code
class UninitializedException(Exception):
    """
    Tried to access the hue bridge before the user (API Key) has been obtained.
    """
    msg = "Hue API has not been initialized yet"

Ancestors

  • builtins.Exception
  • builtins.BaseException

Class variables

var msg