org.x4juli.global.spi
Class ThrowableInformation
java.lang.Object
org.x4juli.global.spi.ThrowableInformation
- All Implemented Interfaces:
- java.io.Serializable
- public class ThrowableInformation
- extends java.lang.Object
- implements java.io.Serializable
ThrowableInformation is Juli'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].
Note that ThrowableInformation does not store the throwable it represents.
Logging API as a whole was originally done for Apache log4j. Juli is a
port of main parts of that to complete the Java Logging
APIs. All credits for initial idea, design, implementation,
documentation belong to the log4j crew. This
file was originally published by Ceki Gülcü. Please use
exclusively the appropriate mailing lists for questions, remarks and
contribution.
This is just a copy of org.apache.log4j.pattern.NameAbbreviator.
- Since:
- 0.5
- Author:
- Boris Unckel
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
rep
private java.lang.String[] rep
ThrowableInformation
public ThrowableInformation(java.lang.Throwable throwable)
ThrowableInformation
public ThrowableInformation(java.lang.String[] rep)
extractStringRep
public void extractStringRep(java.lang.Throwable t,
VectorWriter vw)
getThrowableStrRep
public java.lang.String[] getThrowableStrRep()
- Retun a clone of the string representation of the exceptopn (throwable)
that this object represents.
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
-
- Since:
- 0.5
${license_html}