-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a dedicated error for stream cancelled (#104)
- Loading branch information
1 parent
a36d7fc
commit 879d4c6
Showing
3 changed files
with
14 additions
and
9 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
7 changes: 7 additions & 0 deletions
7
entities/src/main/scala/com/devsisters/shardcake/errors/StreamCancelled.scala
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,7 @@ | ||
package com.devsisters.shardcake.errors | ||
|
||
/** | ||
* Exception indicating that a stream was interrupted. | ||
* It could be caused by a shard rebalance, by the entity inactivity or by the pod being unavailable. | ||
*/ | ||
case object StreamCancelled extends Exception(s"Stream connection was canceled.") |
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