/** * This method notifies the listeners that an error has occurred. * * @param errorMsg The message to deliver to the listeners. */ public void showError(final String errorMsg) { for (final ErrorListener listener : listeners) { listener.errorReported(errorMsg); } }