anki_vector.exceptions

SDK-specific exception classes for Vector.

Functions

connection_error(rpc_error)

Translates grpc-specific errors to user-friendly VectorConnectionException.

Exceptions

VectorAsyncException([_cause])

Invalid asynchronous action attempted.

VectorBehaviorControlException([_cause])

Invalid behavior control action attempted.

VectorCameraFeedException([_cause])

The camera feed is not open.

VectorConfigurationException([_cause])

Invalid or missing configuration data.

VectorConnectionException(cause)

VectorControlException(function)

Unable to run a function which requires behavior control.

VectorControlTimeoutException([_cause])

Failed to get control of Vector.

VectorException

Base class of all Vector SDK exceptions.

VectorExternalAudioPlaybackException

Failed to play external audio on Vector.

VectorInvalidVersionException(version_response)

Your SDK version is not compatible with Vector’s version.

VectorNotFoundException([_cause])

Unable to establish a connection to Vector.

VectorNotReadyException([_cause])

Vector tried to do something before it was ready.

VectorPropertyValueNotReadyException([_cause])

Failed to retrieve the value for this property.

VectorTimeoutException(cause)

Message took too long to complete.

VectorUnauthenticatedException(cause)

Failed to authenticate request.

VectorUnavailableException(cause)

Unable to reach Vector.

VectorUnimplementedException(cause)

Vector does not handle this message.

VectorUnreliableEventStreamException

The robot event stream is currently unreliable.

exception anki_vector.exceptions.VectorAsyncException(_cause=None, *args, **kwargs)

Invalid asynchronous action attempted.

exception anki_vector.exceptions.VectorBehaviorControlException(_cause=None, *args, **kwargs)

Invalid behavior control action attempted.

exception anki_vector.exceptions.VectorCameraFeedException(_cause=None, *args, **kwargs)

The camera feed is not open.

Make sure to enable the camera feed either using Robot(show_viewer=True), or robot.camera.init_camera_feed()

exception anki_vector.exceptions.VectorConfigurationException(_cause=None, *args, **kwargs)

Invalid or missing configuration data.

exception anki_vector.exceptions.VectorConnectionException(cause)
exception anki_vector.exceptions.VectorControlException(function)

Unable to run a function which requires behavior control.

exception anki_vector.exceptions.VectorControlTimeoutException(_cause=None, *args, **kwargs)

Failed to get control of Vector.

Please verify that Vector is connected to the internet, is on a flat surface, and is fully charged.

exception anki_vector.exceptions.VectorException

Base class of all Vector SDK exceptions.

exception anki_vector.exceptions.VectorInvalidVersionException(version_response)

Your SDK version is not compatible with Vector’s version.

exception anki_vector.exceptions.VectorNotFoundException(_cause=None, *args, **kwargs)

Unable to establish a connection to Vector.

Make sure you’re on the same network, and Vector is connected to the internet.

exception anki_vector.exceptions.VectorNotReadyException(_cause=None, *args, **kwargs)

Vector tried to do something before it was ready.

exception anki_vector.exceptions.VectorPropertyValueNotReadyException(_cause=None, *args, **kwargs)

Failed to retrieve the value for this property.

exception anki_vector.exceptions.VectorTimeoutException(cause)

Message took too long to complete.

exception anki_vector.exceptions.VectorUnauthenticatedException(cause)

Failed to authenticate request.

exception anki_vector.exceptions.VectorUnavailableException(cause)

Unable to reach Vector.

exception anki_vector.exceptions.VectorUnimplementedException(cause)

Vector does not handle this message.

exception anki_vector.exceptions.VectorExternalAudioPlaybackException

Failed to play external audio on Vector.

anki_vector.exceptions.connection_error(rpc_error)

Translates grpc-specific errors to user-friendly VectorConnectionException.

Return type

VectorConnectionException