-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(agama): add means to selectively prevent flow crash when a subfl…
…ow crashes (#4436) * feat: update language grammar and transpiler #4404 * feat: add support to catch flow crashes #4404 * docs: update flows' lifecycle details #4404
- Loading branch information
1 parent
bc90ac6
commit 5d8f0ad
Showing
9 changed files
with
103 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...-auth-server/agama/engine/src/main/java/org/mozilla/javascript/SubflowRhinoException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.mozilla.javascript; | ||
|
||
import java.io.PrintStream; | ||
import java.io.PrintWriter; | ||
|
||
public class SubflowRhinoException extends Exception { | ||
|
||
private String rhinoStackTrace; | ||
|
||
public SubflowRhinoException(Object err) { | ||
|
||
super(err.toString()); | ||
try { | ||
NativeError e = (NativeError) err; | ||
rhinoStackTrace = e.getStackDelegated().toString(); | ||
} catch(ClassCastException ex) { | ||
rhinoStackTrace = "Stacktrace not available"; | ||
} | ||
|
||
} | ||
|
||
@Override | ||
public void printStackTrace() { | ||
printStackTrace(System.err); | ||
} | ||
|
||
@Override | ||
public void printStackTrace(PrintStream p) { | ||
p.println(getMessage()); | ||
p.print(rhinoStackTrace); | ||
} | ||
|
||
@Override | ||
public void printStackTrace(PrintWriter w) { | ||
w.println(getMessage()); | ||
w.print(rhinoStackTrace); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters