MCPcopy Index your code
hub / github.com/benfry/processing4 / showError

Method showError

app/src/processing/app/Messages.java:105–117  ·  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

103 * for errors that allow P5 to continue running.
104 */
105 static public void showError(String title, String message, Throwable e) {
106 if (title == null) title = "Error";
107
108 if (Base.isCommandLine()) {
109 System.err.println(title + ": " + message);
110
111 } else {
112 JOptionPane.showMessageDialog(new Frame(), message, title,
113 JOptionPane.ERROR_MESSAGE);
114 }
115 if (e != null) e.printStackTrace();
116 System.exit(1);
117 }
118
119
120 /**

Callers 15

listSupportedMethod · 0.95
initMethod · 0.95
getContentFileMethod · 0.95
initMethod · 0.95
mainMethod · 0.95
createAndShowGUIMethod · 0.95
buildCoreModesMethod · 0.95
handleOpenInternalMethod · 0.95
getSettingsFolderMethod · 0.95
updateFlaggedMethod · 0.95

Calls 4

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

Tested by

no test coverage detected