Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.util.logging

Class ErrorManager

java.lang.Object
|
+--java.util.logging.ErrorManager


public class ErrorManager

extends Object

An ErrorManager deals with errors that a Handler encounters while logging.

Author:See Also:

Field Summary

static intCLOSE_FAILURE

Indicates that there was a problem upon closing an output stream.
static intFLUSH_FAILURE

Indicates that there was a problem upon flushing an output stream.
static intFORMAT_FAILURE

Indicates that there was a problem upon formatting the message of a log record.
static intGENERIC_FAILURE

Indicates that there was a failure that does not readily fall into any of the other categories.
static intOPEN_FAILURE

Indicates that there was a problem upon opening an output stream.
static intWRITE_FAILURE

Indicates that there was a problem upon writing to an output stream.

Constructor Summary

ErrorManager()

Method Summary

voiderror(java.lang.String message, java.lang.Exception ex, int errorCode)

Reports an error that occured upon logging.

Field Details

CLOSE_FAILURE

public static final int CLOSE_FAILURE

Indicates that there was a problem upon closing an output stream.


FLUSH_FAILURE

public static final int FLUSH_FAILURE

Indicates that there was a problem upon flushing an output stream.


FORMAT_FAILURE

public static final int FORMAT_FAILURE

Indicates that there was a problem upon formatting the message of a log record.


GENERIC_FAILURE

public static final int GENERIC_FAILURE

Indicates that there was a failure that does not readily fall into any of the other categories.


OPEN_FAILURE

public static final int OPEN_FAILURE

Indicates that there was a problem upon opening an output stream.


WRITE_FAILURE

public static final int WRITE_FAILURE

Indicates that there was a problem upon writing to an output stream.


Constructor Details

ErrorManager

public ErrorManager()


Method Details

error

public void error(java.lang.String message, java.lang.Exception ex, int errorCode)

Reports an error that occured upon logging. The default implementation emits the very first error to System.err, ignoring subsequent errors.

Parameters: