-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce error hierarchy instead of String errors in DynamoDBQuery (#…
…154) * Introduce error hierarchy instead of String errors in DynamoDBQuery * Fix formatting --------- Co-authored-by: imorozov <[email protected]>
- Loading branch information
1 parent
219d517
commit 01afd2e
Showing
14 changed files
with
126 additions
and
96 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
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
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,13 @@ | ||
package zio.dynamodb | ||
|
||
import scala.util.control.NoStackTrace | ||
|
||
sealed trait DynamoDBError extends Exception with NoStackTrace { | ||
def message: String | ||
override def getMessage(): String = message | ||
} | ||
|
||
object DynamoDBError { | ||
final case class ValueNotFound(message: String) extends DynamoDBError | ||
final case class DecodingError(message: String) extends DynamoDBError | ||
} |
Oops, something went wrong.