From 3495b3c43bf388f8fd28db882a265fc805820756 Mon Sep 17 00:00:00 2001 From: AllanZhengYP Date: Mon, 14 Feb 2022 00:29:22 +0000 Subject: [PATCH] export the server-side base exception SmithyException from the client root --- .../amazon/smithy/typescript/codegen/IndexGenerator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/IndexGenerator.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/IndexGenerator.java index 4d5bf382594..3ec1291e5ef 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/IndexGenerator.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/IndexGenerator.java @@ -82,6 +82,9 @@ static void writeServerIndex( writer.write("export * from \"./operations\";"); writer.write("export * from \"./$L\"", symbol.getName()); + + writer.write("export { SmithyException } from $S", TypeScriptDependency.SERVER_COMMON.packageName); + fileManifest.writeFile( Paths.get(CodegenUtils.SOURCE_FOLDER, ServerSymbolVisitor.SERVER_FOLDER, "index.ts").toString(), writer.toString());