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

Method error

ij/src/main/java/ij/IJ.java:895–901  ·  view source on GitHub ↗

Displays a message in a dialog box titled "ImageJ". If a macro or JavaScript is running, it is aborted. Writes to the Java console if the ImageJ window is not present.

(String msg)

Source from the content-addressed store, hash-verified

893 macro or JavaScript is running, it is aborted. Writes to the
894 Java console if the ImageJ window is not present.*/
895 public static void error(String msg) {
896 error(null, msg);
897 if (Thread.currentThread().getName().endsWith("JavaScript"))
898 throw new RuntimeException(Macro.MACRO_CANCELED);
899 else
900 Macro.abort();
901 }
902
903 /** Displays a message in a dialog box with the specified title. If a
904 macro or JavaScript is running, it is aborted. Writes to the

Callers 15

copyMethod · 0.95
runUserPlugInMethod · 0.95
wrongTypeMethod · 0.95
renameResultsMethod · 0.95
noImageMethod · 0.95
versionLessThanMethod · 0.95
setupDialogMethod · 0.95
selectWindowMethod · 0.95
saveMethod · 0.95
saveAsMethod · 0.95
openAsByteBufferMethod · 0.95
savePreferencesMethod · 0.95

Calls 6

abortMethod · 0.95
logMethod · 0.95
showMessageMethod · 0.95
getNameMethod · 0.65
abortMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected