code: public synchronized void addExceptionListener(ExceptionListener listener) {
          if (mExceptionListeners == null) {
              mExceptionListeners = new HashSet();
          }
          mExceptionListeners.add(listener);
      }
docs: Internally, the collection of listeners is saved in a set so that
  listener instances may be added multiple times without harm.