java.lang.Object | |
↳ | java.util.logging.ErrorManager |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CLOSE_FAILURE | The error code indicating a failure when closing an output stream. | |||||||||
int | FLUSH_FAILURE | The error code indicating a failure when flushing an output stream. | |||||||||
int | FORMAT_FAILURE | The error code indicating a failure when formatting the error messages. | |||||||||
int | GENERIC_FAILURE | The error code indicating a failure that does not fit in any of the specific types of failures that follow. | |||||||||
int | OPEN_FAILURE | The error code indicating a failure when opening an output stream. | |||||||||
int | WRITE_FAILURE | The error code indicating a failure when writing to an output stream. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an instance of
ErrorManager . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Reports an error using the given message, exception and error code. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
The error code indicating a failure when closing an output stream.
The error code indicating a failure when flushing an output stream.
The error code indicating a failure when formatting the error messages.
The error code indicating a failure that does not fit in any of the specific types of failures that follow.
The error code indicating a failure when opening an output stream.
The error code indicating a failure when writing to an output stream.
Constructs an instance of ErrorManager
.
Reports an error using the given message, exception and error code. This implementation will write out the message to err on the first call and all subsequent calls are ignored. A subclass of this class should override this method.
message | the error message, which may be null . |
---|---|
exception | the exception associated with the error, which may be
null . |
errorCode | the error code that identifies the type of error; see the constant fields of this class for possible values. |