Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise AWS::DynamoDB::Exception's from Crynamo::Client
- Loading branch information
1 parent
3daa8bd
commit 3dfc48f
Showing
5 changed files
with
60 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require "json" | ||
|
||
module AWS | ||
# Represents an exception returned from an AWS API | ||
class Exception | ||
JSON.mapping( | ||
__type: String, | ||
message: String, | ||
) | ||
|
||
# Get's the human-readable exception type | ||
def type | ||
@__type.split("#").last | ||
end | ||
end | ||
end |
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