Skip to content

Commit

Permalink
delete references to PartitionNotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
abhipsaMisra committed Jul 12, 2021
1 parent 30e87d8 commit 19f890e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion iothub/device/src/Transport/AmqpIot/AmqpIotErrorAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ internal static class AmqpIotErrorAdapter
public static readonly AmqpSymbol ArgumentError = AmqpIotConstants.Vendor + ":argument-error";
public static readonly AmqpSymbol ArgumentOutOfRangeError = AmqpIotConstants.Vendor + ":argument-out-of-range";
public static readonly AmqpSymbol DeviceContainerThrottled = AmqpIotConstants.Vendor + ":device-container-throttled";
public static readonly AmqpSymbol PartitionNotFound = AmqpIotConstants.Vendor + ":partition-not-found";
public static readonly AmqpSymbol IotHubSuspended = AmqpIotConstants.Vendor + ":iot-hub-suspended";

public static Exception GetExceptionFromOutcome(Outcome outcome)
Expand Down
7 changes: 5 additions & 2 deletions iothub/service/src/Common/Exceptions/ErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ public enum ErrorCode
JobQuotaExceeded = 403003,

/// <summary>
/// The underlying cause is that the number of cloud-to-device messages enqueued for the device exceeds the queue limit (50).
/// The underlying cause is that the number of cloud-to-device messages enqueued for the device exceeds the queue limit.
/// You will need to receive and complete/reject the messages from the device-side before you can enqueue any additional messages.
/// If you want to discard the currently enqueued messages,
/// you can <see cref="ServiceClient.PurgeMessageQueueAsync(string, System.Threading.CancellationToken)">purge your device message queue</see>.
/// For more details on cloud-to-device message operations, see <see href="https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messages-c2d"/>
/// </summary>
DeviceMaximumQueueDepthExceeded = 403004,

Expand Down Expand Up @@ -160,7 +161,9 @@ public enum ErrorCode
/// The error is internal to IoT Hub and is likely transient.
/// For more details, see <see href="https://docs.microsoft.com/azure/iot-hub/iot-hub-troubleshoot-error-503003-partitionnotfound">503003 PartitionNotFound</see>.
/// </summary>
PartitionNotFound = 503003, // We do not handle this error code in our SDK
[Obsolete("This error does should not be returned by the service.")]
[EditorBrowsable(EditorBrowsableState.Never)]
PartitionNotFound = 503003,

ModuleNotFound = 404010,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ internal static class IotHubAmqpErrorCode
public static readonly AmqpSymbol DeviceAlreadyExists = AmqpConstants.Vendor + ":device-already-exists";
public static readonly AmqpSymbol DeviceContainerThrottled = AmqpConstants.Vendor + ":device-container-throttled";
public static readonly AmqpSymbol QuotaExceeded = AmqpConstants.Vendor + ":quota-exceeded";
public static readonly AmqpSymbol PartitionNotFound = AmqpConstants.Vendor + ":partition-not-found";
public static readonly AmqpSymbol PreconditionFailed = AmqpConstants.Vendor + ":precondition-failed";
public static readonly AmqpSymbol IotHubSuspended = AmqpConstants.Vendor + ":iot-hub-suspended";
}
Expand Down

0 comments on commit 19f890e

Please sign in to comment.