MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / exit

Method exit

ij/src/main/java/ij/IJ.java:931–934  ·  view source on GitHub ↗

Aborts any currently running JavaScript, or use IJ.error(string) to abort a JavaScript with a message.

()

Source from the content-addressed store, hash-verified

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

Callers 3

getImageMethod · 0.45
main0Method · 0.45
runMethod · 0.45

Calls 1

getNameMethod · 0.65

Tested by

no test coverage detected