public interface NestedThrowable extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
NestedThrowable.Util
Utilitiy methods for the various flavors of
NestedThrowable . |
Modifier and Type | Field and Description |
---|---|
static boolean |
DETECT_DUPLICATE_NESTING
A system wide flag to enable or disable checking of parent and child
types to detect uneeded nesting
|
static boolean |
NESTED_TRACE_ENABLED
A system wide flag to enable or disable printing of the
nested detail throwable traces.
|
static boolean |
PARENT_TRACE_ENABLED
A system wide flag to enable or disable printing of the
parent throwable traces.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Return the nested Throwable.
|
Throwable |
getNested()
Return the nested throwable.
|
static final boolean PARENT_TRACE_ENABLED
This value is set from the system property org.jboss.util.NestedThrowable.parentTraceEnabled or if that is not set defaults to true.
static final boolean NESTED_TRACE_ENABLED
This value is set from the system property
org.jboss.util.NestedThrowable.nestedTraceEnabled
or if that is not set defaults to true unless
using JDK 1.4 with PARENT_TRACE_ENABLED
set to false,
then false since there is a native mechansim for this there.
Note then when running under 1.4 is is not possible to disable the nested trace output, since that is handled by java.lang.Throwable which we delegate the parent printing to.
static final boolean DETECT_DUPLICATE_NESTING
This value is set from the system property org.jboss.util.NestedThrowable.detectDuplicateNesting or if that is not set defaults to true.
Copyright © 2018 JBoss by Red Hat. All rights reserved.