-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: make eager connection failure hard failure (#355)
* chore: make eager connection failure hard failure * chore: fix lint errors
- Loading branch information
1 parent
630ab32
commit 660519a
Showing
5 changed files
with
60 additions
and
18 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
23 changes: 23 additions & 0 deletions
23
momento-sdk/src/main/java/momento/sdk/exceptions/ConnectionFailedException.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 @@ | ||
package momento.sdk.exceptions; | ||
|
||
public class ConnectionFailedException extends MomentoServiceException { | ||
|
||
/** | ||
* Constructs a ConnectionFailedException with a message. | ||
* | ||
* @param message the message/cause for exception. | ||
*/ | ||
public ConnectionFailedException(final String message) { | ||
super(MomentoErrorCode.CONNECTION, message); | ||
} | ||
|
||
/** | ||
* Constructs a ConnectionFailedException with a message and error details. | ||
* | ||
* @param message the message/cause for exception. | ||
* @param cause the error details. | ||
*/ | ||
public ConnectionFailedException(final String message, final Throwable cause) { | ||
super(MomentoErrorCode.CONNECTION, message, cause); | ||
} | ||
} |
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
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