Top Description Constructors Methods
org.glassfish.grizzly.utils

public Class Exceptions

extends Object
Class Inheritance
Imports
java.io.IOException, .PrintWriter, .StringWriter, java.util.Map

Exceptions utilities.
Author
Alexey Stashok

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
getAllStackTracesAsString()

Returns: String representation of all the JVM threads

public static String

Returns:

the Throwable's stack trace information as String.
getStackTraceAsString
(final Throwable t)

Returns the Throwable's stack trace information as String.

public static IOException
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Exceptionsback to summary
public Exceptions()

Method Detail

getAllStackTracesAsStringback to summary
public static String getAllStackTracesAsString()
Returns:String

String representation of all the JVM threads

See Also
Thread#getAllStackTraces()
getStackTraceAsStringback to summary
public static String getStackTraceAsString(final Throwable t)

Returns the Throwable's stack trace information as String. The result String format will be the same as reported by Throwable#printStackTrace().

Parameters
t:Throwable

Throwable.

Returns:String

the Throwable's stack trace information as String.

makeIOExceptionback to summary
public static IOException makeIOException(final Throwable t)

Wrap the given Throwable by IOException.

Parameters
t:Throwable

Throwable.

Returns:IOException

IOException.