MCPcopy Index your code
hub / github.com/processing/processing / showError

Method showError

app/src/processing/app/Messages.java:140–152  ·  view source on GitHub ↗

Show an error message that's actually fatal to the program. This is an error that can't be recovered. Use showWarning() for errors that allow P5 to continue running.

(String title, String message, Throwable e)

Source from the content-addressed store, hash-verified

138 * for errors that allow P5 to continue running.
139 */
140 static public void showError(String title, String message, Throwable e) {
141 if (title == null) title = "Error";
142
143 if (Base.isCommandLine()) {
144 System.err.println(title + ": " + message);
145
146 } else {
147 JOptionPane.showMessageDialog(new Frame(), message, title,
148 JOptionPane.ERROR_MESSAGE);
149 }
150 if (e != null) e.printStackTrace();
151 System.exit(1);
152 }
153
154
155 /**

Callers 11

initMethod · 0.95
initMethod · 0.95
setupGUIMethod · 0.95
runMethod · 0.95
createAndShowGUIMethod · 0.95
handleOpenMethod · 0.95
getSettingsFolderMethod · 0.95
getSettingsFolderMethod · 0.95
createFontMethod · 0.95
findConnectorMethod · 0.95

Calls 4

isCommandLineMethod · 0.95
exitMethod · 0.80
printlnMethod · 0.45
printStackTraceMethod · 0.45

Tested by

no test coverage detected