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 StringgetAllStackTracesAsString()static StringgetStackTraceAsString(Throwable t)static IOExceptionmakeIOException(Throwable t)Wrap the givenThrowablebyIOException.
-
-
-
Method Detail
-
getStackTraceAsString
public static String getStackTraceAsString(Throwable t)
Returns theThrowable's stack trace information asString. The resultStringformat will be the same as reported byThrowable.printStackTrace().
-
makeIOException
public static IOException makeIOException(Throwable t)
Wrap the givenThrowablebyIOException.- Parameters:
t-Throwable.- Returns:
IOException.
-
getAllStackTracesAsString
public static String getAllStackTracesAsString()
- Returns:
Stringrepresentation of all the JVM threads- See Also:
Thread.getAllStackTraces()
-
-