Log4j 1.3alpha-8

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

Constructor Summary
ErrorItem(String message)
           
ErrorItem(String message, Exception e)
           
 
Method Summary
 void dump()
          Dump the details of this ErrorItem to System.out.
 void dump(PrintStream ps)
          Dump the details of this ErrorItem on the specified PrintStream.
 int getColNumber()
           
 Throwable getException()
           
 int getLineNumber()
           
 String getMessage()
           
 void setColNumber(int colNumber)
           
 void setException(Throwable exception)
           
 void setLineNumber(int lineNumber)
           
 void setMessage(String message)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorItem

public ErrorItem(String message,
                 Exception e)

ErrorItem

public ErrorItem(String message)
Method Detail

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 -  

Log4j 1.3alpha-8

Copyright © 2000-2006 Apache Software Foundation.
Licensed under the Apache License, Version 2.0.