private void showErrorDialogOnSwing(String title, Throwable throwable, String messageString,
			Component parent) {

		if (activeDialog != null) {
			activeDialog.addException(messageString, throwable);
			return;
		}

		activeDialog = createErrorDialog(title, throwable, messageString);
		activeDialog.setClosedCallback(() -> {
			activeDialog.setClosedCallback(null);
			activeDialog.dispose();
			activeDialog = null;
		});
		DockingWindowManager.showDialog(parent, activeDialog);
	}
Error dialog used to append exceptions.

<p>While this dialog is showing all new exceptions will be added to the dialog.  When
this dialog is closed, this reference will be cleared.

<p>Note: all use of this variable <b>must be on the Swing thread</b> to avoid thread
visibility issues.
Ghidra/Framework/Docking/src/main/java/docking/DockingErrorDisplay.java