-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(iot-dev):Fix amqp layer not handling proton:io exceptions
Server causes this error type to appear during TCP connection lost tests, so it must be a retryable exception
- Loading branch information
1 parent
295bd39
commit d50d831
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
...java/com/microsoft/azure/sdk/iot/device/transport/amqps/exceptions/ProtonIOException.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,32 @@ | ||
package com.microsoft.azure.sdk.iot.device.transport.amqps.exceptions; | ||
|
||
import com.microsoft.azure.sdk.iot.device.exceptions.ProtocolException; | ||
|
||
public class ProtonIOException extends ProtocolException | ||
{ | ||
public static final String errorCode = "proton:io"; | ||
|
||
public ProtonIOException() | ||
{ | ||
super(); | ||
this.isRetryable = true; | ||
} | ||
|
||
public ProtonIOException(String message) | ||
{ | ||
super(message); | ||
this.isRetryable = true; | ||
} | ||
|
||
public ProtonIOException(String message, Throwable cause) | ||
{ | ||
super(message, cause); | ||
this.isRetryable = true; | ||
} | ||
|
||
public ProtonIOException(Throwable cause) | ||
{ | ||
super(cause); | ||
this.isRetryable = true; | ||
} | ||
} |
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