Package org.apache.log4j.spi
Class ThrowableInformation
- java.lang.Object
-
- org.apache.log4j.spi.ThrowableInformation
-
- All Implemented Interfaces:
java.io.Serializable
public class ThrowableInformation extends java.lang.Object implements java.io.Serializable
Log4j's internal representation of throwables.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Category
category
private java.lang.String[]
rep
(package private) static long
serialVersionUID
private java.lang.Throwable
throwable
private static java.lang.reflect.Method
TO_STRING_LIST
-
Constructor Summary
Constructors Constructor Description ThrowableInformation(java.lang.String[] r)
Constructs new instance.ThrowableInformation(java.lang.Throwable throwable)
Constructs new instance.ThrowableInformation(java.lang.Throwable throwable, Category category)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getThrowable()
java.lang.String[]
getThrowableStrRep()
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
throwable
private transient java.lang.Throwable throwable
-
category
private transient Category category
-
rep
private java.lang.String[] rep
-
TO_STRING_LIST
private static final java.lang.reflect.Method TO_STRING_LIST
-
-
Constructor Detail
-
ThrowableInformation
public ThrowableInformation(java.lang.String[] r)
Constructs new instance.- Parameters:
r
- String representation of throwable.- Since:
- 1.2.15
-
ThrowableInformation
public ThrowableInformation(java.lang.Throwable throwable)
Constructs new instance.
-
ThrowableInformation
public ThrowableInformation(java.lang.Throwable throwable, Category category)
Constructs a new instance.- Parameters:
throwable
- throwable, may not be null.category
- category used to obtain ThrowableRenderer, may be null.- Since:
- 1.2.16
-
-