@Override
	public boolean fieldElementClicked(Object clickedObject, Navigatable sourceNavigatable,
			ProgramLocation location, MouseEvent mouseEvent, ServiceProvider serviceProvider) {

		if (mouseEvent.getClickCount() != 2 || mouseEvent.getButton() != MouseEvent.BUTTON1) {
			return false;
		}
		ErrorListingField errorField = (ErrorListingField) clickedObject;
		String fieldName = errorField.getFieldFactory().getFieldName();
		Msg.showError(this, null, "Listing Field Exception", "Exception occurred while rendering '" +
			fieldName + "' field", errorField.getThrowable());
		return true;
	}
A handler to process {@link ErrorListingField} clicks.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/ErrorFieldMouseHandler.java