Aborts any currently running JavaScript, or use IJ.error(string) to abort a JavaScript with a message.
()
| 929 | /** Aborts any currently running JavaScript, or use IJ.error(string) |
| 930 | to abort a JavaScript with a message. */ |
| 931 | public static void exit() { |
| 932 | if (Thread.currentThread().getName().endsWith("JavaScript")) |
| 933 | throw new RuntimeException(Macro.MACRO_CANCELED); |
| 934 | } |
| 935 | |
| 936 | /** |
| 937 | * Returns the last error message written by IJ.error() or null if there |