facets.util.datatree
Class ExceptionNode
java.lang.Object
facets.util.Tracer
facets.util.StatefulCore
facets.util.datatree.TypedNode<java.lang.String>
facets.util.datatree.DataNode
facets.util.datatree.ExceptionNode
- All Implemented Interfaces:
- Identified, Stateful, Titled, java.io.Serializable
public final class ExceptionNode
- extends DataNode
Wraps an exception in a DataNode.
ExceptionNode enables the graceful handling of almost
any exception thrown during construction of a tree of TypedNodes.
The exception can be caught by returning it wrapped in an ExceptionNode,
allowing execution to continue while ensuring that the exception is recorded.
Typically the ExceptionNode is eventually displayed
in a tree viewer, facilitating debugging.
- See Also:
- Serialized Form
|
Field Summary |
static boolean |
alertExceptions
If set to true, the exception passed to the constructor
is rethrown. |
static boolean |
throwExceptions
If set to true, the exception passed to the constructor
is rethrown. |
static java.lang.Object |
TYPE
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final java.lang.Object TYPE
throwExceptions
public static boolean throwExceptions
- If set to
true, the exception passed to the constructor
is rethrown.
alertExceptions
public static boolean alertExceptions
- If set to
true, the exception passed to the constructor
is rethrown.
ExceptionNode
public ExceptionNode(java.lang.Exception e)
ExceptionNode
public ExceptionNode(java.lang.Exception e,
TypedNode[] detail)