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

feat: enhance exception messages with request IDs and metadata #1048

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

ianbotsf
Copy link
Contributor

@ianbotsf ianbotsf commented Mar 1, 2024

Issue #

awslabs/aws-sdk-kotlin#1212

Description of changes

This change modifies how ServiceException messages are formed. Request IDs are added when available. Additionally, subclasses can add more metadata by overriding the displayMetadata property. Finally, when a service-provided exception message is unavailable, a message will be formed by a combination of error code, error type, and protocol response.

Companion PR: awslabs/aws-sdk-kotlin#1240

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

sonarqubecloud bot commented Mar 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@ianbotsf ianbotsf merged commit 4143c7f into main Mar 7, 2024
13 checks passed
@ianbotsf ianbotsf deleted the feat-better-exception-messages branch March 7, 2024 23:39
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.

3 participants