From 664cc1ae1a353c232f3bf7d6b8b1ffd93b0b647d Mon Sep 17 00:00:00 2001 From: Trevor Burnham Date: Fri, 20 Feb 2026 20:02:33 -0500 Subject: [PATCH] fix(smithy-client): set $retryable and $response in ServiceException constructor --- .changeset/cuddly-ads-travel.md | 5 +++++ packages/smithy-client/src/exceptions.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/cuddly-ads-travel.md 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; } /**