code: public synchronized void error(String msg, Exception ex, int code) {
          if (reported) {
              // We only report the first error, to avoid clogging
              // the screen.
              return;
          }
          reported = true;
          String text = "java.util.logging.ErrorManager: " + code;
          if (msg != null) {
              text = text + ": " + msg;
          }
          System.err.println(text);
          if (ex != null) {
              ex.printStackTrace();
          }
      }
docs: The error method is called when a Handler failure occurs.
  <p>
  This method may be overridden in subclasses.  The default
  behavior in this base class is that the first call is
  reported to System.err, and subsequent calls are ignored.
  
  @param msg    a descriptive string (may be null)
  @param ex     an exception (may be null)
  @param code   an error code defined in ErrorManager