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