public class


extends Object
implements Serializable
   ↳ org.apache.log4j.spi.ThrowableInformation

Class Overview

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].


Public Constructors
ThrowableInformation(Throwable throwable)
ThrowableInformation(Throwable throwable, Category category)
Create a new instance.
ThrowableInformation(String[] r)
Create new instance.
Public Methods
Throwable getThrowable()
synchronized String[] getThrowableStrRep()
Inherited Methods
From class java.lang.Object

Public Constructors

public ThrowableInformation (Throwable throwable)

public ThrowableInformation (Throwable throwable, Category category)

Create a new instance.

throwable throwable, may not be null.
category category used to obtain ThrowableRenderer, may be null.

public ThrowableInformation (String[] r)

Create new instance.

r String representation of throwable.

Public Methods

public Throwable getThrowable ()

public synchronized String[] getThrowableStrRep ()