public final class EnhancedThrowableRenderer extends Object implements ThrowableRenderer
Modifier and Type | Field and Description |
---|---|
private Method |
getClassNameMethod
StackTraceElement.getClassName() method.
|
private Method |
getStackTraceMethod
Throwable.getStackTrace() method.
|
Constructor and Description |
---|
EnhancedThrowableRenderer()
Construct new instance.
|
Modifier and Type | Method and Description |
---|---|
String[] |
doRender(Throwable throwable)
Render Throwable.
|
private Class |
findClass(String className)
Find class given class name.
|
private String |
formatElement(Object element,
Map classMap)
Format one element from stack trace.
|
private Method getStackTraceMethod
private Method getClassNameMethod
public EnhancedThrowableRenderer()
public String[] doRender(Throwable throwable)
doRender
in interface ThrowableRenderer
throwable
- throwable, may not be null.private String formatElement(Object element, Map classMap)
element
- element, may not be null.classMap
- map of class name to location.private Class findClass(String className) throws ClassNotFoundException
className
- class name, may not be null.ClassNotFoundException
- thrown if class can not be found.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses