We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9050827 commit 011c540Copy full SHA for 011c540
env-model-generator/src/createEntryPoint.ts
@@ -46,7 +46,9 @@ function createEntryPoint(entryPoint: EntryPoint): Method {
46
statements.push(new FnStatement(entryPointCall));
47
else
48
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);
+
50
+ return new Method(`public static void ${makeIdentifier(entryPoint.className)}_${makeIdentifier(entryPoint.method.name)}_entryPoint()`,
51
+ statements, ["Exception"]);
52
}
53
54
function getClassConstructionCall(className: string, isContextRequired: boolean): [ Expression, boolean ] {
0 commit comments