Share via


errors module

Classes

ArgumentError

Error thrown when an argument is invalid.

ArgumentOutOfRangeError

Error thrown when an argument has a value that is out of the admissible range.

BadDeviceResponseError

Error thrown when a device sends a bad response to a device method call.

CloudToDeviceDetachedError

Error thrown when the c2d feature stopped working at the transport level, requiring the client to retry starting it.

DeviceAlreadyExistsError

Error thrown when the device id used for device creation already exists in the Device Identity Registry.

DeviceMaximumQueueDepthExceededError

Error thrown when the message queue for a device is full.

DeviceMessageLockLostError

Error thrown when settling a message fails because the lock token associated with the message is lost.

DeviceMethodsDetachedError

Error thrown when the device methods feature stopped working at the transport level, requiring the client to retry starting it.

DeviceNotFoundError

Error thrown when a device cannot be found in the IoT Hub instance registry.

DeviceRegistrationFailedError

Error thrown when a DPS registration operation fails

DeviceTimeoutError

Error thrown when the device doesn't process the method call in time.

FormatError

Error thrown when a string that is supposed to have a specific formatting is not formatted properly.

GatewayTimeoutError

Error thrown when the IoT Hub instance doesn't process the device method call in time.

InternalServerError

Error thrown when an internal server error occurred. You may have found a bug?

InvalidEtagError

Error thrown when the eTag specified is incorrectly formatted or out of date.

InvalidOperationError

Error thrown when an operation is attempted but is not allowed.

IotHubNotFoundError

Error thrown when the Azure IoT hub was not found.

IotHubQuotaExceededError

Error thrown the the Azure IoT hub quota has been exceeded. Quotas are reset periodically, this operation will have to wait until then. To learn more about quotas, see Azure IoT Hub quotas and throttling

IoTHubSuspendedError

Error thrown when IoT Hub has been suspended.

JobNotFoundError

Error thrown when the job with the specified identifier was not found.

MessageTooLargeError

Error thrown when the message sent is too large: the maximum size is 256Kb.

NotConnectedError

Error thrown when the device is disconnected and the operation cannot be completed.

NotImplementedError

Error thrown when a feature is not implemented yet but the placeholder is present.

OperationCancelledError

Error thrown when any operation (local or remote) is cancelled

PreconditionFailedError

Error thrown when a condition that should have been met in order to execute an operation was not.

SecurityDeviceError

Error thrown when a low level security device/driver fails.

ServiceUnavailableError

Error thrown when the service is unavailable. The operation should be retried.

ThrottlingError

Error thrown when IoT Hub is throttled due to excessive activity. To learn more about quotas, see Azure IoT Hub quotas and throttling

TimeoutError

Error thrown when a timeout occurs

TooManyDevicesError

Error thrown when the maximum number of devices on a specific hub has been reached.

TwinDetachedError

Error thrown when the twin feature stopped working at the transport level, requiring the client to retry starting it.

TwinRequestError

Generic error thrown when a twin request fails with an unknown error code.

UnauthorizedError

Error thrown when the connection parameters are wrong and the server refused the connection.