Skip to content

Errors

ActionApiError

ActionApiError(error, status_code)

Bases: Exception

Raised when the Nexigon Hub API returns an error response.

CommandInvocationError

Bases: Exception

Raised when a device command invocation fails at the transport or protocol level.

This is distinct from a command that completes with DeviceCommandStatus.Error: a failed command still yields a Done frame and is returned to the caller. This exception signals that the WebSocket connection was lost, a malformed frame was received, or the server closed the stream before sending a terminal Done frame.