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