org.jplate.foundation.node
Class NodeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jplate.JPlateException
              extended by org.jplate.foundation.FoundationException
                  extended by org.jplate.foundation.node.NodeException
All Implemented Interfaces:
java.io.Serializable

public class NodeException
extends FoundationException

This is the base class of all node exceptions.

Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/foundation/node/NodeException.java $
    

See Also:
Serialized Form

Field Summary
private  NodeIfc _node
          The node that caused self to be raised.
 
Constructor Summary
protected NodeException()
          Default constructor not allowed.
  NodeException(NodeIfc node)
          This constructor sets the node that caused self to be raised.
  NodeException(java.lang.String msg, NodeIfc node)
          This constructor sets the message and the node that caused self to be raised.
  NodeException(java.lang.String msg, java.lang.Throwable rootCause, NodeIfc node)
          This constructor sets the message and root cause.
  NodeException(java.lang.Throwable rootCause, NodeIfc node)
          This constructor sets the root cause and the node that caused self to be raised.
 
Method Summary
 NodeIfc getNode()
          This method will return the node that caused self to be raised.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_node

private final NodeIfc _node
The node that caused self to be raised.

Constructor Detail

NodeException

protected NodeException()
Default constructor not allowed.

Throws:
java.lang.UnsupportedOperationException - If this constructor is called.

NodeException

public NodeException(NodeIfc node)
This constructor sets the node that caused self to be raised.

Parameters:
node - The node that caused self to be raised.

NodeException

public NodeException(java.lang.String msg,
                     NodeIfc node)
This constructor sets the message and the node that caused self to be raised.

Parameters:
msg - A message about why self was raised.
node - The node that caused self to be raised.

NodeException

public NodeException(java.lang.Throwable rootCause,
                     NodeIfc node)
This constructor sets the root cause and the node that caused self to be raised.

Parameters:
rootCause - The exception that caused self to be raised.
node - The node that caused self to be raised.

NodeException

public NodeException(java.lang.String msg,
                     java.lang.Throwable rootCause,
                     NodeIfc node)
This constructor sets the message and root cause.

Parameters:
msg - A message about why self was raised.
rootCause - The exception that caused self to be raised.
node - The node that caused self to be raised.
Method Detail

getNode

public NodeIfc getNode()
This method will return the node that caused self to be raised.

Returns:
The node that caused self to be raised.