|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.NestedThrowable.Util
Utilitiy methods for the various flavors of
NestedThrowable
.
Constructor Summary | |
NestedThrowable.Util()
|
Method Summary | |
static void |
checkNested(NestedThrowable (src) parent,
java.lang.Throwable child)
Check and possibly warn if the nested exception type is the same as the parent type (duplicate nesting). |
protected static boolean |
getBoolean(java.lang.String name,
boolean defaultValue)
A helper to get a boolean property. |
static java.lang.String |
getMessage(java.lang.String msg,
java.lang.Throwable nested)
Returns a formated message for the given detail message and nested Throwable . |
static void |
print(java.lang.Throwable nested,
java.io.PrintStream stream)
Prints the nested Throwable to the given stream. |
static void |
print(java.lang.Throwable nested,
java.io.PrintWriter writer)
Prints the nested Throwable to the given writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NestedThrowable.Util()
Method Detail |
protected static boolean getBoolean(java.lang.String name, boolean defaultValue)
public static void checkNested(NestedThrowable (src) parent, java.lang.Throwable child)
public static java.lang.String getMessage(java.lang.String msg, java.lang.Throwable nested)
Throwable
.
msg
- Detail message.nested
- Nested Throwable
.
public static void print(java.lang.Throwable nested, java.io.PrintStream stream)
Throwable
to the given stream.
nested
- Nested Throwable
.stream
- Stream to print to.public static void print(java.lang.Throwable nested, java.io.PrintWriter writer)
Throwable
to the given writer.
nested
- Nested Throwable
.writer
- Writer to print to.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |