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.
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 likesdkErrorMetadata
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.