Log4j 1.1.3

org.apache.log4j.spi
Interface ErrorHandler

All Superinterfaces:
OptionHandler
All Known Implementing Classes:
OnlyOnceErrorHandler

public interface ErrorHandler
extends OptionHandler

Appenders may delegate their error handling to ErrorHandlers.

Error handling is a particularly tedious to get right because by definition errors are hard to predict and to reproduce.

Please take the time to contact the author in case you discover that errors are not properly handled. You are most welcome to suggest new error handling policies or criticize existing policies.

Since:
0.9.0
Author:
Ceki Gülcü

Method Summary
 void error(String message)
          This method prints the error message passed as a parameter.
 void error(String message, Exception e, int errorCode)
          This method should handle the error.
 
Methods inherited from interface org.apache.log4j.spi.OptionHandler
activateOptions, getOptionStrings, setOption
 

Method Detail

error

public void error(String message,
                  Exception e,
                  int errorCode)
This method should handle the error. Information about the error condition is passed a parameter.
Parameters:
message - The message assoicated with the error.
e - The Exption that was thrown when the error occured.
errorCode - The error code associated with the error.

error

public void error(String message)
This method prints the error message passed as a parameter.

Log4j 1.1.3

Please notify me about new log4j releases.