The error method is called when a Handler failure occurs.
This method may be overriden in subclasses. The default
behavior in this base class is that the first call is
reported to System.err, and subsequent calls are ignored.
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();
}