Package org.glassfish.grizzly.utils
Class Exceptions
- java.lang.Object
-
- org.glassfish.grizzly.utils.Exceptions
-
public class Exceptions extends Object
Exceptions utilities.- Author:
- Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description Exceptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAllStackTracesAsString()
static String
getStackTraceAsString(Throwable t)
static IOException
makeIOException(Throwable t)
Wrap the givenThrowable
byIOException
.
-
-
-
Method Detail
-
getStackTraceAsString
public static String getStackTraceAsString(Throwable t)
Returns theThrowable
's stack trace information asString
. The resultString
format will be the same as reported byThrowable.printStackTrace()
.
-
makeIOException
public static IOException makeIOException(Throwable t)
Wrap the givenThrowable
byIOException
.- Parameters:
t
-Throwable
.- Returns:
IOException
.
-
getAllStackTracesAsString
public static String getAllStackTracesAsString()
- Returns:
String
representation of all the JVM threads- See Also:
Thread.getAllStackTraces()
-
-