org.apache.log4j.spi
Class ErrorItem
java.lang.Object
|
+--org.apache.log4j.spi.ErrorItem
- public class ErrorItem
- extends java.lang.Object
Used to store special log4j errors which cannot be logged using internal
logging. Such errors include thos occuring during the initial phases
of log4j configuration or errors emanating from core components such as
Logger or Hierarchy.
- Author:
- Ceki Gulcu
Constructor Summary |
ErrorItem(java.lang.String message)
|
ErrorItem(java.lang.String message,
java.lang.Exception e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ErrorItem
public ErrorItem(java.lang.String message,
java.lang.Exception e)
ErrorItem
public ErrorItem(java.lang.String message)
getColNumber
public int getColNumber()
setColNumber
public void setColNumber(int colNumber)
getException
public java.lang.Throwable getException()
setException
public void setException(java.lang.Throwable exception)
getLineNumber
public int getLineNumber()
setLineNumber
public void setLineNumber(int lineNumber)
getMessage
public java.lang.String getMessage()
setMessage
public void setMessage(java.lang.String message)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
dump
public void dump()
- Dump the details of this ErrorItem to System.out.
dump
public void dump(java.io.PrintStream ps)
- Dump the details of this ErrorItem on the specified
PrintStream
.
- Parameters:
ps
-
Copyright 2000-2005 Apache Software Foundation.