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)
| 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 |
no test coverage detected