public static final class NestedThrowable.Util extends Object
NestedThrowable.| Constructor and Description |
|---|
NestedThrowable.Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkNested(NestedThrowable parent,
Throwable child)
Check and possibly warn if the nested exception type is the same
as the parent type (duplicate nesting).
|
protected static boolean |
getBoolean(String name,
boolean defaultValue)
A helper to get a boolean property.
|
static String |
getMessage(String msg,
Throwable nested)
Returns a formated message for the given detail message
and nested
Throwable. |
static void |
print(Throwable nested,
PrintStream stream)
Prints the nested
Throwable to the given stream. |
static void |
print(Throwable nested,
PrintWriter writer)
Prints the nested
Throwable to the given writer. |
protected static boolean getBoolean(String name, boolean defaultValue)
public static void checkNested(NestedThrowable parent, Throwable child)
public static String getMessage(String msg, Throwable nested)
Throwable.msg - Detail message.nested - Nested Throwable.public static void print(Throwable nested, PrintStream stream)
Throwable to the given stream.nested - Nested Throwable.stream - Stream to print to.public static void print(Throwable nested, PrintWriter writer)
Throwable to the given writer.nested - Nested Throwable.writer - Writer to print to.Copyright © 2015 JBoss by Red Hat. All rights reserved.