| |
|
| java.lang.Object java.util.logging.ErrorManager
ErrorManager | public class ErrorManager (Code) | | 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.
|
Field Summary | |
final public static int | CLOSE_FAILURE CLOSE_FAILURE is used when a close of an output stream fails. | final public static int | FLUSH_FAILURE FLUSH_FAILURE is used when a flush to an output stream fails. | final public static int | FORMAT_FAILURE FORMAT_FAILURE is used when formatting fails for any reason. | final public static int | GENERIC_FAILURE GENERIC_FAILURE is used for failure that don't fit
into one of the other categories. | final public static int | OPEN_FAILURE OPEN_FAILURE is used when an open of an output stream fails. | final public static int | WRITE_FAILURE WRITE_FAILURE is used when a write to an output stream fails. |
Method Summary | |
public synchronized void | error(String msg, Exception ex, int code) The error method is called when a Handler failure occurs.
This method may be overriden in subclasses. |
CLOSE_FAILURE | final public static int CLOSE_FAILURE(Code) | | CLOSE_FAILURE is used when a close of an output stream fails.
|
FLUSH_FAILURE | final public static int FLUSH_FAILURE(Code) | | FLUSH_FAILURE is used when a flush to an output stream fails.
|
FORMAT_FAILURE | final public static int FORMAT_FAILURE(Code) | | FORMAT_FAILURE is used when formatting fails for any reason.
|
GENERIC_FAILURE | final public static int GENERIC_FAILURE(Code) | | GENERIC_FAILURE is used for failure that don't fit
into one of the other categories.
|
OPEN_FAILURE | final public static int OPEN_FAILURE(Code) | | OPEN_FAILURE is used when an open of an output stream fails.
|
WRITE_FAILURE | final public static int WRITE_FAILURE(Code) | | WRITE_FAILURE is used when a write to an output stream fails.
|
error | public synchronized void error(String msg, Exception ex, int code)(Code) | | 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) Parameters: ex - an exception (may be null) Parameters: code - an error code defined in ErrorManager |
|
|
|