Package org.apache.log4j.spi
Class ErrorItem
java.lang.Object
org.apache.log4j.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 TypeMethodDescriptionvoid
dump()
Dump the details of this ErrorItem to System.out.void
dump
(PrintStream ps) Dump the details of this ErrorItem on the specifiedPrintStream
.int
Get column number.Get exception.int
Get line number.Get message.void
setColNumber
(int colNumber) Set column number.void
setException
(Throwable exception) Set exception.void
setLineNumber
(int lineNumber) Set line number.void
setMessage
(String message) Set message.toString()
String representation of ErrorItem.
-
Field Details
-
Constructor Details
-
ErrorItem
Create new instance.- Parameters:
message
- messagee
- exception
-
ErrorItem
Creaet new instance.- Parameters:
message
- message.
-
-
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
Get exception.- Returns:
- exception.
-
setException
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
Get message.- Returns:
- message.
-
setMessage
Set message.- Parameters:
message
- message.
-
toString
String representation of ErrorItem. -
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.
-