-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iot-service): Add mapping for 409 status code to IotHubConflictE…
…xception
- Loading branch information
1 parent
e1d90a1
commit 39d14a0
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...src/main/java/com/microsoft/azure/sdk/iot/service/exceptions/IotHubConflictException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c) Microsoft. All rights reserved. | ||
* Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
*/ | ||
|
||
package com.microsoft.azure.sdk.iot.service.exceptions; | ||
|
||
/** | ||
* 409 Conflict | ||
* Likely caused by trying to create a resource that already exists | ||
*/ | ||
public class IotHubConflictException extends IotHubException | ||
{ | ||
public IotHubConflictException() | ||
{ | ||
this(null); | ||
} | ||
|
||
public IotHubConflictException(String message) | ||
{ | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters