public class ThrowableUtil
extends java.lang.Object
Throwable
:s.Constructor and Description |
---|
ThrowableUtil() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
stackTraceToImage(java.lang.Throwable t,
int width,
int height)
Prints as much of a stacktrace as possible to an image.
|
static java.lang.String |
stackTraceToString(java.lang.Throwable t)
Convert a stacktrace to a string that is usually printed
with the
Throwable.printStackTrace() method. |
public static java.lang.String stackTraceToString(java.lang.Throwable t)
Throwable.printStackTrace()
method.t
- The throwablepublic static java.awt.image.BufferedImage stackTraceToImage(java.lang.Throwable t, int width, int height)
t
- The throwablewidth
- The width of the imageheight
- The height of the image