smithy-lang / smithy-kotlin

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

refactor: delegate exception error messages to exception base class logic #1044

Closed aajtodd closed 4 months ago

aajtodd commented 4 months ago

Issue \

n/a

Description of changes

Refactor exception codegen to pass the message field to the exception base class constructor rather than overriding it wholesale. This will allow the base class to augment the message (or fill it in from other sources like sdkErrorMetadata which may have more information from protocol parsing logic).

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
1 New issue

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

See analysis details on SonarCloud