Skip to content

Commit 011c540

Browse files
committed
Adding 'throws Exception' to entry point methods
1 parent 9050827 commit 011c540

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

env-model-generator/src/createEntryPoint.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ function createEntryPoint(entryPoint: EntryPoint): Method {
4646
statements.push(new FnStatement(entryPointCall));
4747
else
4848
statements.push(new Declaration(entryPoint.method.returnType, "result", entryPointCall));
49-
return new Method(`public static void ${makeIdentifier(entryPoint.className)}_${makeIdentifier(entryPoint.method.name)}_entryPoint()`, statements);
49+
50+
return new Method(`public static void ${makeIdentifier(entryPoint.className)}_${makeIdentifier(entryPoint.method.name)}_entryPoint()`,
51+
statements, ["Exception"]);
5052
}
5153

5254
function getClassConstructionCall(className: string, isContextRequired: boolean): [ Expression, boolean ] {

0 commit comments

Comments
 (0)