Android
java.util.logging
public class

java.util.logging.ErrorManager

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.

Summary

Constants

      Value  
int  CLOSE_FAILURE  The error code indicating a failure when closing an output stream.  0x00000003 
int  FLUSH_FAILURE  The error code indicating a failure when flushing an output stream.  0x00000002 
int  FORMAT_FAILURE  The error code indicating a failure when formatting the error messages.  0x00000005 
int  GENERIC_FAILURE  The error code indicating a failure that does not fit in any of the specific types of failures that follow.  0x00000000 
int  OPEN_FAILURE  The error code indicating a failure when opening an output stream.  0x00000004 
int  WRITE_FAILURE  The error code indicating a failure when writing to an output stream.  0x00000001 

Public Constructors

            ErrorManager()
Constructs an instance of ErrorManager.

Public Methods

          void  error(String message, Exception exception, int errorCode)

Reports an error using the given message, exception and error code.

Methods inherited from class java.lang.Object

Details

Constants

public static final int CLOSE_FAILURE

The error code indicating a failure when closing an output stream.
Constant Value: 3 (0x00000003)

public static final int FLUSH_FAILURE

The error code indicating a failure when flushing an output stream.
Constant Value: 2 (0x00000002)

public static final int FORMAT_FAILURE

The error code indicating a failure when formatting the error messages.
Constant Value: 5 (0x00000005)

public static final int GENERIC_FAILURE

The error code indicating a failure that does not fit in any of the specific types of failures that follow.
Constant Value: 0 (0x00000000)

public static final int OPEN_FAILURE

The error code indicating a failure when opening an output stream.
Constant Value: 4 (0x00000004)

public static final int WRITE_FAILURE

The error code indicating a failure when writing to an output stream.
Constant Value: 1 (0x00000001)

Public Constructors

public ErrorManager()

Constructs an instance of ErrorManager.

Public Methods

public void error(String message, Exception exception, int errorCode)

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.

Parameters

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 on this class.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56