smithy-lang / smithy-kotlin

Smithy code generator for Kotlin (in development)
Apache License 2.0
72 stars 26 forks source link

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

Closed ianbotsf closed 4 months ago

ianbotsf commented 4 months ago

Issue \

https://github.com/awslabs/aws-sdk-kotlin/issues/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: https://github.com/awslabs/aws-sdk-kotlin/pull/1240

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

sonarcloud[bot] commented 4 months ago

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