org.apache.log4j.spi
Class ErrorItem
java.lang.Object
|
+--org.apache.log4j.spi.ErrorItem
- public class ErrorItem
- extends Object
Used to store special log4j errors which cannot be logged using internal
logging. Such errors include those occurring during the initial phases
of log4j configuration or errors emanating from core components such as
Logger or Hierarchy.
- Author:
- Ceki Gulcu
ErrorItem
public ErrorItem(String message,
Exception e)
ErrorItem
public ErrorItem(String message)
getColNumber
public int getColNumber()
setColNumber
public void setColNumber(int colNumber)
getException
public Throwable getException()
setException
public void setException(Throwable exception)
getLineNumber
public int getLineNumber()
setLineNumber
public void setLineNumber(int lineNumber)
getMessage
public String getMessage()
setMessage
public void setMessage(String message)
toString
public String toString()
- Overrides:
toString
in class Object
dump
public void dump()
- Dump the details of this ErrorItem to System.out.
dump
public void dump(PrintStream ps)
- Dump the details of this ErrorItem on the specified
PrintStream
.
- Parameters:
ps
-
Copyright © 2000-2006 Apache Software Foundation.
Licensed under the Apache License, Version 2.0.