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