public static final class NestedThrowable.Util
extends java.lang.Object
NestedThrowable.| Modifier and Type | Field and Description |
|---|---|
private static org.jboss.logging.Logger |
pvtLog |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkNested(NestedThrowable 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.
|
private static org.jboss.logging.Logger |
getLogger()
Something is very broken with class nesting, which can sometimes
leave log uninitialized durring one of the following method calls.
|
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. |
private static org.jboss.logging.Logger getLogger()
This is a HACK to keep those methods from NPE until this problem can be resolved.
protected static boolean getBoolean(java.lang.String name,
boolean defaultValue)
public static void checkNested(NestedThrowable 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.