Skip to content

Commit b0cc1f8

Browse files
committed
fix(smithy-client): exception option missing message property
1 parent debcfed commit b0cc1f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/smithy-client/src/exceptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { HttpResponse, MetadataBearer, ResponseMetadata, RetryableTrait, SmithyE
33
/**
44
* The type of the exception class constructor parameter. The returned type contains the properties
55
* in the `ExceptionType` but not in the `BaseExceptionType`. If the `BaseExceptionType` contains
6-
* `$metadata` property, it's also included in the returned type.
6+
* `$metadata` and `message` properties, it's also included in the returned type.
77
* @internal
88
*/
99
export type ExceptionOptionType<ExceptionType extends Error, BaseExceptionType extends Error> = Omit<
1010
ExceptionType,
11-
Exclude<keyof BaseExceptionType, "$metadata">
11+
Exclude<keyof BaseExceptionType, "$metadata" | "message">
1212
>;
1313

1414
export interface ServiceExceptionOptions extends SmithyException, MetadataBearer {

0 commit comments

Comments
 (0)