Microsoft.Azure.Devices.Common.Exceptions Namespace

Classes

ConfigurationNotFoundException

The exception that is thrown when the queried configuration is not available on IoT Hub.

DeviceAlreadyExistsException

The exception that is thrown when an attempt is made to create a device that already exists in the hub.

DeviceInvalidResultCountException

The exception that is thrown when the count of device results exceeds the specified maximum value. Note: This exception is currently not thrown by the client library.

DeviceMaximumQueueDepthExceededException

The exception that is thrown when an attempt to enqueue a message fails because the message queue for the device is already full.

DeviceMessageLockLostException

The exception that is thrown when an attempt to communicate with a device fails because the lock token was lost (if the connection is lost and regained for example). This timeout has the same effect as if the message was abandoned.

DeviceNotFoundException

The exception that is thrown when an attempt is made to access a device instance that is not registered on the IoT Hub.

InvalidProtocolVersionException

The exception that is thrown when IoT Hub receives an invalid protocol version number. Note: This exception is currently not thrown by the client library.

IotHubCommunicationException

The exception that is thrown when an attempt to communicate with the IoT Hub fails.

IotHubException

The exception thrown when the client receives an error while communicating with IoT Hub service.

IotHubNotFoundException

The exception that is thrown when a request is made against an IoT Hub that does not exist.

IotHubSerializationException

The exception that is thrown when IoT Hub receives an invalid serialization request.

IotHubSerializationVersionException

The exception that is thrown when IoT Hub receives an invalid serialization version number. Note: This exception is currently not thrown by the client library.

IotHubSuspendedException

The exception that is thrown when a request is made against an IoT Hub that has been suspended.

IotHubThrottledException

The exception that is thrown when the rate of incoming requests exceeds the throttling limit set by IoT Hub.

JobCancelledException

The exception that is thrown when the queried job has already been canceled on IoT Hub. Note: This exception is currently not thrown by the client library.

JobNotFoundException

The exception that is thrown when the queried job details are not available on IoT Hub.

JobQuotaExceededException

The exception that is thrown when IoT Hub exceeds the available quota for active jobs.

MessageTooLargeException

The exception that is thrown when a message is sent to IoT Hub that exceeds the maximum allowed bytes in size.

ModuleAlreadyExistsException

The exception that is thrown when an attempt is made to create a module that already exists in the hub.

ModuleNotFoundException

The exception that is thrown when an attempt is made to access a module instance that is not registered on the IoT Hub.

PreconditionFailedException

The exception that is thrown when a precondition set by IoT Hub is not fulfilled.

QuotaExceededException

The exception that is thrown when the allocated quota set by IoT Hub is exceeded.

ServerBusyException

The exception that is thrown when IoT Hub is busy with previous requests. Callers should wait a while and retry the operation.

ServerErrorException

The exception that is thrown when IoT Hub encounters an error while processing a request.

ThrottlingException

The exception that is thrown when the rate of incoming requests exceeds the throttling limit set by IoT Hub.

TooManyDevicesException

The exception that is thrown when the list of input devices is too large for an operation.

TooManyModulesOnDeviceException

The exception that is thrown when the list of input modules is too large for an operation.

UnauthorizedException

The exception that is thrown when there is an authorization error.

Enums

ErrorCode

Error Codes for common IoT hub exceptions.