예제 #1
0
 /**
  * This method notifies the listeners that a critical error has occurred.
  *
  * @param criticalErrorMsg The message to deliver to the listeners.
  */
 public void showCriticalError(final String criticalErrorMsg) {
   for (final ErrorListener listener : listeners) {
     listener.criticalErrorReported(criticalErrorMsg);
   }
 }
예제 #2
0
 /**
  * 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);
   }
 }