public class Exceptions
extends java.lang.Object
| Constructor and Description |
|---|
Exceptions() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getAllStackTracesAsString() |
static java.lang.String |
getStackTraceAsString(java.lang.Throwable t)
Returns the
Throwable's stack trace information as String. |
static java.io.IOException |
makeIOException(java.lang.Throwable t)
Wrap the given
Throwable by IOException. |
public static java.lang.String getStackTraceAsString(java.lang.Throwable t)
Throwable's stack trace information as String.
The result String format will be the same as reported by Throwable.printStackTrace().t - Throwable.Throwable's stack trace information as String.public static java.io.IOException makeIOException(java.lang.Throwable t)
Throwable by IOException.t - Throwable.IOException.public static java.lang.String getAllStackTracesAsString()
String representation of all the JVM threadsThread.getAllStackTraces()Copyright © 2018 Oracle Corporation. All Rights Reserved.