diff --git a/.changeset/cuddly-ads-travel.md b/.changeset/cuddly-ads-travel.md new file mode 100644 index 00000000000..f3853a8200d --- /dev/null +++ b/.changeset/cuddly-ads-travel.md @@ -0,0 +1,5 @@ +--- +"@smithy/smithy-client": minor +--- + +include $retryable and $response in ServiceException diff --git a/packages/smithy-client/src/exceptions.ts b/packages/smithy-client/src/exceptions.ts index 3f1518ab629..ab0fee8cd11 100644 --- a/packages/smithy-client/src/exceptions.ts +++ b/packages/smithy-client/src/exceptions.ts @@ -36,6 +36,8 @@ export class ServiceException extends Error implements SmithyException, Metadata this.name = options.name; this.$fault = options.$fault; this.$metadata = options.$metadata; + this.$retryable = options.$retryable; + this.$response = options.$response; } /**