Skip to content

Commit

Permalink
fix(iot-service): Hide unreferenced error code (#2094)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhipsaMisra authored and David R. Williamson committed Jul 16, 2021
1 parent d58d0d8 commit a13aa13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions iothub/service/src/Common/Exceptions/ErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ public enum ErrorCode
/// the message is locked by IoT hub for a lock timeout duration of one minute.
/// If the device tries to complete the message after the lock timeout expires, IoT hub throws this exception.
/// </summary>
[Obsolete("This error should not be returned to a service application. This is relevant only for a device application.")]
[EditorBrowsable(EditorBrowsableState.Never)]
DeviceMessageLockLost = 412002,

// RequestEntityTooLarge - 413
Expand Down
4 changes: 0 additions & 4 deletions iothub/service/src/Common/TrackingHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ public static ErrorCode GetErrorCodeFromAmqpError(Error ex)
{
return ErrorCode.DeviceNotFound;
}
if (ex.Condition.Equals(IotHubAmqpErrorCode.MessageLockLostError))
{
return ErrorCode.DeviceMessageLockLost;
}
if (ex.Condition.Equals(IotHubAmqpErrorCode.IotHubSuspended))
{
return ErrorCode.IotHubSuspended;
Expand Down
2 changes: 1 addition & 1 deletion iothub/service/src/JobStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public enum JobStatus
Scheduled,

/// <summary>
/// Indicates that a Job is in the queue for execution (synonym for enqueued to be depricated)
/// Indicates that a Job is in the queue for execution (synonym for enqueued to be deprecated)
/// </summary>
[EnumMember(Value = "queued")]
Queued
Expand Down

0 comments on commit a13aa13

Please sign in to comment.