Microsoft.Azure.Devices.Client.Exceptions Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classes
DeviceMaximumQueueDepthExceededException |
This exception actually corresponds to IoTHubQuotaExceeded. For more information on what causes this error and steps to resolve, see https://docs.microsoft.com/azure/iot-hub/iot-hub-troubleshoot-error-403002-iothubquotaexceeded. The exception type has not been changed to avoid breaking changes but the inner exception has the correct exception type. |
DeviceMessageLockLostException |
This exception is thrown when attempting to reject/abandon/complete a cloud-to-device message with a lock token that has already expired. The lock token expires after the lock timeout set by the service, or if your client connection was lost and regained while receiving the message but before you could reject/abandon/complete it. |
DeviceNotFoundException |
The exception is thrown when the device is disabled and will be used to set the status to device disabled in the connection status handler. This exception also corresponds to the following error codes on operation responses: |
IotHubCommunicationException |
This exception is thrown when an attempt to communicate with the IoT hub service fails due to transient network errors after exhausting all the retries based on the retry policy set on the client or due to operation timeouts. |
IotHubException |
The exception that is thrown when an error occurs during DeviceClient or ModuleClient operation. |
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. |
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. |
QuotaExceededException |
The exception that is thrown by the device 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. |
UnauthorizedException |
The exception that is thrown when there is an authorization error. |