Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.alexa.errors.AlexaError Class Reference
Inheritance diagram for homeassistant.components.alexa.errors.AlexaError:
[legend]
Collaboration diagram for homeassistant.components.alexa.errors.AlexaError:
[legend]

Public Member Functions

None __init__ (self, str error_message, dict[str, Any]|None payload=None)
 

Public Attributes

 error_message
 
 payload
 

Static Public Attributes

 None
 

Detailed Description

Base class for errors that can be serialized for the Alexa API.

A handler can raise subclasses of this to return an error to the request.

Definition at line 25 of file errors.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.alexa.errors.AlexaError.__init__ (   self,
str  error_message,
dict[str, Any] | None   payload = None 
)
Initialize an alexa error.

Definition at line 34 of file errors.py.

Member Data Documentation

◆ error_message

homeassistant.components.alexa.errors.AlexaError.error_message

Definition at line 39 of file errors.py.

◆ None

homeassistant.components.alexa.errors.AlexaError.None
static

Definition at line 31 of file errors.py.

◆ payload

homeassistant.components.alexa.errors.AlexaError.payload

Definition at line 40 of file errors.py.


The documentation for this class was generated from the following file: