Skip to content

Commit

Permalink
[Error Codes] Updated MessageTooLarge (#2073)
Browse files Browse the repository at this point in the history
* [Error Codes] Updated MessageTooLarge

* Removed en-us where seen

* Remove en-us

* REmove en-us
  • Loading branch information
jamdavi authored Jul 9, 2021
1 parent e061ca1 commit 421f23e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ namespace Microsoft.Azure.Devices.Client.Exceptions
/// <summary>
/// The exception that is thrown when an attempt to send a message fails because the length of the message exceeds the maximum size allowed.
/// </summary>
/// <remarks>
/// When the message is too large for IoT Hub you will receive this exception. You should attempt to reduce your message size and send again. For more information on message sizes, see <see href="https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-quotas-throttling#other-limits">IoT Hub quotas and throttling | Other limits</see>
/// </remarks>
[Serializable]
public sealed class MessageTooLargeException : IotHubException
{
Expand Down
5 changes: 4 additions & 1 deletion iothub/service/src/Common/Exceptions/ErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ public enum ErrorCode
DeviceMessageLockLost = 412002,

// RequestEntityTooLarge - 413
/// <summary>
/// When the message is too large for IoT Hub you will receive this error. You should attempt to reduce your message size and send again. For more information on message sizes, see <see href="https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-quotas-throttling#other-limits">IoT Hub quotas and throttling | Other limits</see>
/// </summary>
MessageTooLarge = 413001,

TooManyDevices = 413002,
Expand All @@ -185,7 +188,7 @@ public enum ErrorCode

/// <summary>
/// IoT hub throttling limits have been exceeded for the requested operation.
/// For more information, <see href="https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-quotas-throttling"/>
/// For more information, <see href="https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-quotas-throttling"/>
/// </summary>
ThrottlingException = 429001,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
namespace Microsoft.Azure.Devices.Common.Exceptions
{
/// <summary>
/// The exception that is thrown when a message is sent to IoT Hub that exceeds the maximum allowed bytes in size.
/// The exception that is thrown when an attempt to send a message fails because the length of the message exceeds the maximum size allowed.
/// </summary>
/// <remarks>
/// When the message is too large for IoT Hub you will receive this exception. You should attempt to reduce your message size and send again. For more information on message sizes, see <see href="https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-quotas-throttling#other-limits">IoT Hub quotas and throttling | Other limits</see>
/// </remarks>
[Serializable]
public sealed class MessageTooLargeException : IotHubException
{
Expand Down

0 comments on commit 421f23e

Please sign in to comment.