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

This exception is not directly returned by the service for ServiceClient operations. However, the status code HttpStatusCode.PreconditionFailed is converted to this exception.

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

This exception is thrown when an attempt to communicate with the IoT hub service fails due to transient network issues or operation timeouts. Retrying failed operations could resolve the error.

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

This exception is thrown when the IoT hub has been suspended. This is likely due to exceeding Azure spending limits. To resolve the error, check the Azure bill and ensure there are enough credits.

IotHubThrottledException

This exception is thrown when the requests to the IoT hub exceed the limits based on the tier of the hub. Retrying with exponential back-off could resolve this error.

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 an attempt to send a message fails because the length of the message exceeds the maximum size allowed.

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 by the service client when the daily message quota for the IoT hub is exceeded.

ServerBusyException

The exception that is thrown when the IoT hub is busy.

ServerErrorException

The exception that is thrown when the IoT hub returned an internal service error.

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 response errors.