Skip to content

Commit

Permalink
private/mode/api: Add codegen typed Errors for RESTJSON and JSONRPC A…
Browse files Browse the repository at this point in the history
…PIs (#3062)

Adds code generated error types for APIs using RESTJSON and JSONRPC
protocol, and modeled errors. This adds generated error types that can
be typed asserted to in order to read error values in addition to Code
and Message.
  • Loading branch information
jasdel authored and skmcgrail committed Jan 10, 2020
1 parent 3b88578 commit e842504
Show file tree
Hide file tree
Showing 630 changed files with 176,142 additions and 40,630 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
### SDK Features
* Add generated error types for JSONRPC and RESTJSON APIs
* Adds generated error types for APIs using JSONRPC and RESTJSON protocols. This allows you to retrieve additional error metadata within an error message that was previously unavailable. For example, Amazon DynamoDB's TransactWriteItems operation can return a `TransactionCanceledException` continuing detailed `CancellationReasons` member. This data is now available by type asserting the error returned from the operation call to `TransactionCanceledException` type.
* `service/dynamodb/dynamodbattribute`: Go 1.9+, Add caching of struct serialization ([#3070](https://github.com/aws/aws-sdk-go/pull/3070))
* For Go 1.9 and above, adds struct field caching to the SDK's DynamoDB AttributeValue marshalers and unmarshalers. This significantly reduces time, and overall allocations of the (un)marshalers by caching the reflected structure's fields. This should improve the performance of applications using DynamoDB AttributeValue (un)marshalers.

Expand Down
66 changes: 0 additions & 66 deletions example/service/dynamodb/transactWriteItems/README.md

This file was deleted.

121 changes: 0 additions & 121 deletions example/service/dynamodb/transactWriteItems/error_handler.go

This file was deleted.

171 changes: 0 additions & 171 deletions example/service/dynamodb/transactWriteItems/error_handler_test.go

This file was deleted.

Loading

0 comments on commit e842504

Please sign in to comment.