public static String showWizardErrorDialog(Shell wizardShell, InvocationTargetException e) {
		String message = null;
		Throwable cause = e.getCause();
		if (cause != null) {
			message = cause.getClass().getSimpleName();
			if (cause.getMessage() != null && !cause.getMessage().isEmpty()) {
				message += ": " + cause.getMessage();
			}
		}
		else {
			message = e.getClass().getSimpleName();
		}
		MessageDialog.openError(wizardShell, "Error", message);
		return message;
	}
Shows an error dialog that a wizard can use to display information about an exception that
occurred while wizard'ing.
 
@param wizardShell The wizard's shell.
@param e The exception that occurred.
@return The displayed message.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/EclipseMessageUtils.java