@Override
	public void displayWarningMessage(ErrorLogger errorLogger, Object originator, Component parent,
			String title, Object message, Throwable throwable) {

		if (!ConcurrentTestExceptionHandler.isEnabled()) {
			// cheat: we don't want stack traces being printed to the log when we errors are 
			//        disabled
			throwable = null;
		}

		delegate.displayWarningMessage(errorLogger, originator, parent, title, message, throwable);

		if (throwable != null) {
			// For now, only report exceptions; warning messages don't' seem important enough
			// to fail a test.  We can always change this.  
			ConcurrentTestExceptionHandler.handle(Thread.currentThread(), throwable);
		}
	}
An error display wrapper that allows us to fail tests when errors are encountered.  This is 
a way for us to fail for exceptions that come from client code, but are handled by the 
error display service, while running tests.
Ghidra/Framework/Docking/src/main/java/docking/test/TestFailingErrorDisplayWrapper.java