Package info.monitorenter.util
Class ExceptionUtil
- java.lang.Object
-
- info.monitorenter.util.ExceptionUtil
-
public final class ExceptionUtil extends java.lang.Object
Nice static helpers for working with Strings.Maybe not always the fastest solution to call in here, but working. Also usable for seeing examples and cutting code for manual inlining.
- Version:
- $Revision: 1.2 $
- Author:
- Achim.Westermann@gmx.de
-
-
Constructor Summary
Constructors Constructor Description ExceptionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
dumpThreadStack(java.io.PrintStream outprint)
Prints out the current Thread stack to the given stream.static ExceptionUtil
instance()
Returns the singleton instance of this class.
-
-
-
Method Detail
-
instance
public static ExceptionUtil instance()
Returns the singleton instance of this class.This method is useless for now as all methods are static. It may be used in future if VM-global configuration will be put to the state of the instance.
- Returns:
- the singleton instance of this class.
-
dumpThreadStack
public static void dumpThreadStack(java.io.PrintStream outprint)
Prints out the current Thread stack to the given stream.- Parameters:
outprint
- the stream to print to (e.g.
).System.err
- See Also:
Thread.getStackTrace()
-
-