From 7b0d8372b47c56687b336cd66b67909234b2f15a Mon Sep 17 00:00:00 2001 From: "David R. Williamson" Date: Fri, 9 Jul 2021 13:40:10 -0700 Subject: [PATCH] Notes for and deprecation of BlobContainerValidationError, BulkRegistryOperationFailure, and JobQuotaExceeded --- .../src/Common/Exceptions/ErrorCode.cs | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/iothub/service/src/Common/Exceptions/ErrorCode.cs b/iothub/service/src/Common/Exceptions/ErrorCode.cs index d74ac44b11..af00d47cbd 100644 --- a/iothub/service/src/Common/Exceptions/ErrorCode.cs +++ b/iothub/service/src/Common/Exceptions/ErrorCode.cs @@ -1,6 +1,9 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +using System; +using System.ComponentModel; + namespace Microsoft.Azure.Devices.Common.Exceptions { /// @@ -20,12 +23,34 @@ public enum ErrorCode ArgumentNull = 400005, IotHubFormatError = 400006, DeviceStorageEntitySerializationError = 400007, + + /// + /// An error was encountered validating the storage blob container URI. + /// + /// + /// As this error is in the 4xx HTTP status code range, the service would have detected a problem with the blob container + /// URI, such as does not exist, insufficient permissions, or SAS token expiry exceeded. + /// + [Obsolete("This error does not appear to be thrown by the service.")] + [EditorBrowsable(EditorBrowsableState.Never)] BlobContainerValidationError = 400008, + ImportWarningExistsError = 400009, InvalidSchemaVersion = 400010, DeviceDefinedMultipleTimes = 400011, DeserializationError = 400012, + + /// + /// An error was encountered processing bulk registry operations. + /// + /// + /// As this error is in the 4xx HTTP status code range, the service would have detected a problem with the job + /// request or user input. + /// + [Obsolete("This error does not appear to be thrown by the service.")] + [EditorBrowsable(EditorBrowsableState.Never)] BulkRegistryOperationFailure = 400013, + CannotRegisterModuleToModule = 400301, // Unauthorized - 401 @@ -47,6 +72,11 @@ public enum ErrorCode /// IotHubQuotaExceeded = 403002, + /// + /// The IoT Hub has exceeded the available quota for active jobs. + /// + [Obsolete("This error does not appear to be thrown by the service, and would not apply to a device anyway.")] + [EditorBrowsable(EditorBrowsableState.Never)] JobQuotaExceeded = 403003, ///