| java.lang.Object java.util.logging.ErrorManager
ErrorManager | public class ErrorManager (Code) | | An error reporting facility for
Handler implementations to record any
error that may happen during logging. Handlers should report
errors to an ErrorManager , instead of throwing exceptions,
which would interfere with the log issuer's execution.
|
Field Summary | |
final public static int | CLOSE_FAILURE The error code indicating a failure when closing an output stream. | final public static int | FLUSH_FAILURE The error code indicating a failure when flushing an output stream. | final public static int | FORMAT_FAILURE The error code indicating a failure when formatting the error messages. | final public static int | GENERIC_FAILURE The error code indicating a failure that does not fit in any of the
specific types of failures that follow. | final public static int | OPEN_FAILURE The error code indicating a failure when opening an output stream. | final public static int | WRITE_FAILURE The error code indicating a failure when writing to an output stream. |
Constructor Summary | |
public | ErrorManager() Constructs an instance of ErrorManager . |
Method Summary | |
public void | error(String message, Exception exception, int errorCode) Reports an error using the given message, exception and error code. |
CLOSE_FAILURE | final public static int CLOSE_FAILURE(Code) | | The error code indicating a failure when closing an output stream.
|
FLUSH_FAILURE | final public static int FLUSH_FAILURE(Code) | | The error code indicating a failure when flushing an output stream.
|
FORMAT_FAILURE | final public static int FORMAT_FAILURE(Code) | | The error code indicating a failure when formatting the error messages.
|
GENERIC_FAILURE | final public static int GENERIC_FAILURE(Code) | | The error code indicating a failure that does not fit in any of the
specific types of failures that follow.
|
OPEN_FAILURE | final public static int OPEN_FAILURE(Code) | | The error code indicating a failure when opening an output stream.
|
WRITE_FAILURE | final public static int WRITE_FAILURE(Code) | | The error code indicating a failure when writing to an output stream.
|
ErrorManager | public ErrorManager()(Code) | | Constructs an instance of ErrorManager .
|
error | public void error(String message, Exception exception, int errorCode)(Code) | | Reports an error using the given message, exception and error code. This
implementation will write out the message to
System.err on the
first call and all subsequent calls are ignored. A subclass of this class
should override this method.
Parameters: message - The error message, which may be null . Parameters: exception - The exception associated with the error, which may benull . Parameters: errorCode - The error code that identifies the type of error; see theconstant fields on this class. |
|
|