Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuring a custom error factory for a service #1485

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

stof
Copy link
Member

@stof stof commented Jun 30, 2023

The Amazon Incentives API implements a protocol compatible with the rest-xml AWS protocol except for the representation of errors (they also provide a JSON protocol which is compatible with the rest-json AWS protocol except the representation of errors but with a crappy representation of ThrottlingException that only returns {"message": "Rate exceeded"} without even a proper 429 status code).

This adds support for an optional error-factory entry in the manifest file allowing to force a specific implementation of the error factory. The provided class is still expected to have a constructor with no arguments like all the core factories due to the generated code.

@stof stof merged commit 826df66 into async-aws:master Jun 30, 2023
14 checks passed
@stof stof deleted the custom_error_factory branch June 30, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants