Class ErrorItem
java.lang.Object
org.apache.log4j.component.spi.ErrorItem
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump()Dump the details of this ErrorItem to System.out.voiddump(PrintStream ps) Dump the details of this ErrorItem on the specifiedPrintStream.intGet column number.Get exception.intGet line number.Get message.voidsetColNumber(int colNumber) Set column number.voidsetException(Throwable exception) Set exception.voidsetLineNumber(int lineNumber) Set line number.voidsetMessage(String message) Set message.toString()String representation of ErrorItem.
-
Field Details
-
Constructor Details
-
ErrorItem
-
ErrorItem
-
-
Method Details
-
getColNumber
public int getColNumber()Get column number.- Returns:
- column number.
-
setColNumber
public void setColNumber(int colNumber) Set column number.- Parameters:
colNumber- new column number.
-
getException
-
setException
-
getLineNumber
public int getLineNumber()Get line number.- Returns:
- line number.
-
setLineNumber
public void setLineNumber(int lineNumber) Set line number.- Parameters:
lineNumber- line number.
-
getMessage
-
setMessage
-
toString
-
dump
public void dump()Dump the details of this ErrorItem to System.out. -
dump
Dump the details of this ErrorItem on the specifiedPrintStream.- Parameters:
ps- print stream.
-