Sdílet prostřednictvím


IotHubClientErrorCode Enum

Definition

The IoT hub device/module client error code.

public enum IotHubClientErrorCode
type IotHubClientErrorCode = 
Public Enum IotHubClientErrorCode
Inheritance
IotHubClientErrorCode

Fields

Name Value Description
Ok 0

The request completed without exception.

DeviceMaximumQueueDepthExceeded 1

This actually corresponds to QuotaExceeded. 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.

QuotaExceeded 2

The request failed because the quota for such operations has been exceeded.

DeviceMessageLockLost 3

The request failed because 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.

DeviceNotFound 4

The request failed because the device is disabled and will be used to set the state to device disabled in the connection state handler.

NetworkErrors 5

The 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.

Suspended 6

The IoT hub has been suspended. This is likely due to exceeding Azure spending limits.

Timeout 7

The request failed because the operation timed out. This can be caused by underlying network issues or by the server being too busy to handle the request.

Throttled 8

The request failed because the IoT hub exceed the limits based on the tier of the hub.

PreconditionFailed 9

The ETag in the request does not match the ETag of the existing resource.

MessageTooLarge 10

The attempt to send a message fails because the length of the message exceeds the maximum size allowed.

ServerBusy 11

The request was rejected by the service because it is too busy to handle it right now.

ServerError 12

The service encountered an error while handling the request.

Unauthorized 13

The request failed because the provided credentials are out of date or incorrect.

TlsAuthenticationError 14

The request failed because of TLS authentication error.

Applies to