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