Skip to content
Unverified Commit 43936cbb authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Refactor smithy_types::Error to be more flexible (Breaking Change) (#426)

* Refactor smithy_types::Error to be more flexible

S3 (and probably other) services have errors with an additional set of metadata that must be recorded. This diff does a few things:
1. Make the internal fields of smithy_error::Error private (as they should have been from the beginning)
2. Adds a builder to easily construct errors
3. Adds a property bag to enable storing additional fields on the error.

This will make it straightforward to add per-service customizations to record additional error metadata.

* Fix two missed refactorings
parent a6161140
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment