Package org.apache.log4j.component.spi
Class ErrorItem
- java.lang.Object
-
- org.apache.log4j.component.spi.ErrorItem
-
public class ErrorItem extends java.lang.ObjectUsed 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 Modifier and Type Field Description (package private) intcolNumberColumn.(package private) java.lang.ThrowableexceptionException.(package private) intlineNumberLine number.(package private) java.lang.StringmessageMessage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump()Dump the details of this ErrorItem to System.out.voiddump(java.io.PrintStream ps)Dump the details of this ErrorItem on the specifiedPrintStream.intgetColNumber()Get column number.java.lang.ThrowablegetException()Get exception.intgetLineNumber()Get line number.java.lang.StringgetMessage()Get message.voidsetColNumber(int colNumber)Set column number.voidsetException(java.lang.Throwable exception)Set exception.voidsetLineNumber(int lineNumber)Set line number.voidsetMessage(java.lang.String message)Set message.java.lang.StringtoString()String representation of ErrorItem.
-
-
-
Method Detail
-
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
public java.lang.Throwable getException()
Get exception.- Returns:
- exception.
-
setException
public void setException(java.lang.Throwable exception)
Set exception.- Parameters:
exception- exception
-
getLineNumber
public int getLineNumber()
Get line number.- Returns:
- line number.
-
setLineNumber
public void setLineNumber(int lineNumber)
Set line number.- Parameters:
lineNumber- line number.
-
getMessage
public java.lang.String getMessage()
Get message.- Returns:
- message.
-
setMessage
public void setMessage(java.lang.String message)
Set message.- Parameters:
message- message.
-
toString
public java.lang.String toString()
String representation of ErrorItem.- Overrides:
toStringin classjava.lang.Object- Returns:
- string.
-
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 specifiedPrintStream.- Parameters:
ps- print stream.
-
-