Log4j 1.3alpha-8

org.apache.log4j.spi
Class ThrowableInformation

java.lang.Object
  |
  +--org.apache.log4j.spi.ThrowableInformation
All Implemented Interfaces:
Serializable

public class ThrowableInformation
extends Object
implements Serializable

ThrowableInformation is log4j's internal representation of throwables. It essentially consists of a string array, called 'rep', where the first element, that is rep[0], represents the string representation of the throwable (i.e. the value you get when you do throwable.toString()) and subsequent elements correspond the stack trace with the top most entry of the stack corresponding to the second entry of the 'rep' array that is rep[1].

Author:
Ceki Gülcü
See Also:
Serialized Form

Constructor Summary
ThrowableInformation(String[] rep)
           
ThrowableInformation(Throwable throwable)
           
 
Method Summary
 boolean equals(Object o)
           
 void extractStringRep(Throwable t, org.apache.log4j.spi.VectorWriter vw)
           
 Throwable getThrowable()
          Deprecated.  
 String[] getThrowableStrRep()
          Retun a clone of the string representation of the exceptopn (throwable) that this object represents.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowableInformation

public ThrowableInformation(Throwable throwable)

ThrowableInformation

public ThrowableInformation(String[] rep)
Method Detail

getThrowable

public Throwable getThrowable()
Deprecated.  

Gets throwable.
Returns:
throwable, may be null.

extractStringRep

public void extractStringRep(Throwable t,
                             org.apache.log4j.spi.VectorWriter vw)

getThrowableStrRep

public String[] getThrowableStrRep()
Retun a clone of the string representation of the exceptopn (throwable) that this object represents.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

Log4j 1.3alpha-8

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