Skip to content

Commit 730fb37

Browse files
committed
export the server-side base exception SmithyException from the client root
1 parent e2031d5 commit 730fb37

File tree

1 file changed

+3
-0
lines changed
  • smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen

1 file changed

+3
-0
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/IndexGenerator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ static void writeServerIndex(
8282
writer.write("export * from \"./operations\";");
8383

8484
writer.write("export * from \"./$L\"", symbol.getName());
85+
86+
writer.write("export { SmithyException } from $S", TypeScriptDependency.SERVER_COMMON.packageName);
87+
8588
fileManifest.writeFile(
8689
Paths.get(CodegenUtils.SOURCE_FOLDER, ServerSymbolVisitor.SERVER_FOLDER, "index.ts").toString(),
8790
writer.toString());

0 commit comments

Comments
 (0)