Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error Codes] Updating UnauthorizedException #2072

Merged
merged 5 commits into from
Jul 9, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion iothub/device/src/Common/Exceptions/UnauthorizedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
namespace Microsoft.Azure.Devices.Client.Exceptions
{
/// <summary>
/// The exception that is thrown if the current operation was not authorized.
/// The exception that is thrown when there is an authorization error.
/// </summary>
/// <remarks>
/// This exception means the client is not authroized to use the specified IoT Hub. Please review the <see href="https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-troubleshoot-error-401003-iothubunauthorized">401003 IoTHubUnauthorized</see> guide for more information.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

misspelled authorized

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove en-us from the URL.

/// </remarks>
[Serializable]
public sealed class UnauthorizedException : IotHubException
{
Expand Down
3 changes: 3 additions & 0 deletions iothub/service/src/Common/Exceptions/UnauthorizedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ namespace Microsoft.Azure.Devices.Common.Exceptions
/// <summary>
/// The exception that is thrown when there is an authorization error.
/// </summary>
/// <remarks>
/// This exception means the client is not authroized to use the specified IoT Hub. Please review the <see href="https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-troubleshoot-error-401003-iothubunauthorized">401003 IoTHubUnauthorized</see> guide for more information.
/// </remarks>
[Serializable]
public sealed class UnauthorizedException : IotHubException
{
Expand Down