java.util.logging
public class ErrorManager extends Object
Field Summary | |
---|---|
static int | CLOSE_FAILURE
Indicates that there was a problem upon closing
an output stream. |
static int | FLUSH_FAILURE
Indicates that there was a problem upon flushing
an output stream. |
static int | FORMAT_FAILURE
Indicates that there was a problem upon formatting
the message of a log record. |
static int | GENERIC_FAILURE
Indicates that there was a failure that does not readily
fall into any of the other categories. |
static int | OPEN_FAILURE
Indicates that there was a problem upon opening
an output stream. |
static int | WRITE_FAILURE
Indicates that there was a problem upon writing to
an output stream. |
Constructor Summary | |
---|---|
ErrorManager() |
Method Summary | |
---|---|
void | error(String message, Exception ex, int errorCode)
Reports an error that occured upon logging. |
Parameters: message a message describing the error, or null
if
there is no suitable description.
ex an exception, or null
if the error is not
related to an exception.
errorCode one of the defined error codes, for example
ErrorManager.CLOSE_FAILURE
.