ErrorManager objects can be attached to Handlers to process
any error that occur on a Handler during Logging.
ErrorManager objects can be attached to Handlers to process
any error that occur on a Handler during Logging.
When processing logging output, if a Handler encounters problems
then rather than throwing an Exception back to the issuer of
the logging call (who is unlikely to be interested) the Handler
should call its associated ErrorManager.
publicsynchronized void
error
(String msg, Exception ex, int code)
The error method is called when a Handler failure occurs.
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.
Parameters: - msg - a descriptive string (may be null)
- ex - an exception (may be null)
- code - an error code defined in ErrorManager