public enum ErrorCodeDescription extends Enum<ErrorCodeDescription>
Enum Constant and Description |
---|
ArgumentInvalid
Something in the request payload is invalid.
|
ArgumentNull
Something in the payload is unexpectedly null.
|
BadFormat
The general error for malformed service requests.
|
BulkRegistryOperationFailure
An error was encountered processing bulk registry operations.
|
Conflict
The general error for service requests that failed because the resource already exists.
|
DeviceAlreadyExists
There's already a device with the same device Id in the IoT hub.
|
DeviceDefinedMultipleTimes
A devices with the same Id was present multiple times in the input request for bulk device registry operations.
|
DeviceMaximumQueueDepthExceeded
The underlying cause is that the number of cloud-to-device messages enqueued for the device exceeds the queue limit.
|
DeviceNotFound
The operation failed because the device cannot be found by IoT hub.
|
DeviceNotOnline
IoT hub failed to invoke the direct method because the target device was not connected at the time.
|
Forbidden
The general error for forbidden service requests.
|
InternalServerError
The general error for service requests that failed because the service encountered an error.
|
InvalidOperation
The client has requested an operation that the hub recognizes as invalid.
|
InvalidProtocolVersion
The API version used by the SDK is not supported by the IoT hub endpoint used in this connection.
|
IotHubFormatError
Returned by the service if a JSON object provided by this library cannot be parsed, for instance, if the
JSON provided for updating a twin is malformed.
|
IotHubQuotaExceeded
Total number of messages on the hub exceeded the allocated quota.
|
IotHubUnauthorizedAccess
The SAS token has expired or IoT hub couldn't authenticate the authentication header, rule, or key.
|
MessageTooLarge
When the message that you attempted to send is too large for IoT hub you will receive this error.
|
ModuleAlreadyExistsOnDevice
The operation failed because it attempted to add a module to a device when that device already has a module
registered to it with the same Id.
|
ModuleNotFound
The operation failed because the module cannot be found by IoT hub.
|
NotFound
The general error for service requests that failed because a resource could not be found.
|
PreconditionFailed
The general error for when a service request fails because it provided an out of date ETag such as when updating
a twin.
|
RequestEntityTooLarge
The general error for service requests that failed because a service request contained a resource that was larger
than the service allows.
|
ServerError
IoT hub encountered a service-side issue.
|
ServiceUnavailable
The general error for service requests that failed because the service isn't available at the moment.
|
ThrottleBacklogLimitExceeded
IoT hub throttling limits have been exceeded for the requested operation.
|
ThrottlingException
IoT hub throttling limits have been exceeded for the requested operation.
|
TooManyDevices
Too many devices were included in the bulk operation.
|
Unauthorized
The general error for unauthorized service requests.
|
UnclassifiedErrorCode
This library could not classify the received error code into a known description.
|
Modifier and Type | Method and Description |
---|---|
static ErrorCodeDescription |
Parse(int errorCode)
Get the ErrorCodeDescription tied to the provided errorCode
|
static ErrorCodeDescription |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCodeDescription[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCodeDescription UnclassifiedErrorCode
public static final ErrorCodeDescription InvalidProtocolVersion
public static final ErrorCodeDescription InvalidOperation
public static final ErrorCodeDescription ArgumentInvalid
public static final ErrorCodeDescription ArgumentNull
public static final ErrorCodeDescription IotHubFormatError
public static final ErrorCodeDescription DeviceDefinedMultipleTimes
public static final ErrorCodeDescription BulkRegistryOperationFailure
public static final ErrorCodeDescription IotHubUnauthorizedAccess
public static final ErrorCodeDescription IotHubQuotaExceeded
public static final ErrorCodeDescription DeviceMaximumQueueDepthExceeded
public static final ErrorCodeDescription DeviceNotFound
public static final ErrorCodeDescription ModuleNotFound
public static final ErrorCodeDescription DeviceAlreadyExists
public static final ErrorCodeDescription ModuleAlreadyExistsOnDevice
public static final ErrorCodeDescription MessageTooLarge
public static final ErrorCodeDescription TooManyDevices
public static final ErrorCodeDescription ThrottleBacklogLimitExceeded
public static final ErrorCodeDescription ServerError
public static final ErrorCodeDescription DeviceNotOnline
public static final ErrorCodeDescription BadFormat
public static final ErrorCodeDescription Unauthorized
public static final ErrorCodeDescription Forbidden
public static final ErrorCodeDescription NotFound
public static final ErrorCodeDescription Conflict
public static final ErrorCodeDescription PreconditionFailed
public static final ErrorCodeDescription RequestEntityTooLarge
public static final ErrorCodeDescription ThrottlingException
public static final ErrorCodeDescription InternalServerError
public static final ErrorCodeDescription ServiceUnavailable
public static ErrorCodeDescription[] values()
for (ErrorCodeDescription c : ErrorCodeDescription.values()) System.out.println(c);
public static ErrorCodeDescription valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ErrorCodeDescription Parse(int errorCode)
errorCode
- the service error code, such as 404, or 429001Copyright © 2023. All rights reserved.