Package org.apache.log4j.spi
Class ThrowableInformation
java.lang.Object
org.apache.log4j.spi.ThrowableInformation
- All Implemented Interfaces:
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:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate new instance.ThrowableInformation
(Throwable throwable) ThrowableInformation
(Throwable throwable, Category category) Create a new instance. -
Method Summary
-
Constructor Details
-
ThrowableInformation
-
ThrowableInformation
Create a new instance.- Parameters:
throwable
- throwable, may not be null.category
- category used to obtain ThrowableRenderer, may be null.- Since:
- 1.2.16
-
ThrowableInformation
Create new instance.- Parameters:
r
- String representation of throwable.- Since:
- 1.2.15
-
-
Method Details
-
getThrowable
-
getThrowableStrRep
-