Top Description Constructors Methods
org.newsclub.net.unix

public final Class StackTraceUtil

extends Object
Class Inheritance

Internal helper class to dump stack traces when deemed appropriate.

Note

For junit testing classes, use kohlschutter-test-util's TestStackTraceUtil.

Author
Christian Kohlschütter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
printStackTrace(Throwable
The throwable to log.
t
)

Print/Log the stack trace of the given Throwable.

public static void
printStackTraceSevere(Throwable
The throwable to log.
t
)

Print/Log the stack trace of the given Throwable, marking this entry as a "severe condition".

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StackTraceUtilback to summary
private StackTraceUtil()

Method Detail

printStackTraceback to summary
public static void printStackTrace(Throwable t)

Print/Log the stack trace of the given Throwable.

Parameters
t:Throwable

The throwable to log.

printStackTraceSevereback to summary
public static void printStackTraceSevere(Throwable t)

Print/Log the stack trace of the given Throwable, marking this entry as a "severe condition".

Parameters
t:Throwable

The throwable to log.