consciouscode.seedling
Class NodeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by consciouscode.seedling.SeedlingException
              extended by consciouscode.seedling.NodeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WrongNodeTypeException

public class NodeException
extends SeedlingException

Indicates a problem with a specific node in the Seedling container.

See Also:
Serialized Form

Constructor Summary
NodeException(NodeReference reference)
           
NodeException(NodeReference reference, String reason)
           
NodeException(NodeReference reference, String reason, Throwable cause)
           
NodeException(NodeReference reference, Throwable cause)
           
 
Method Summary
 NodeReference getReference()
          Gets a reference to the node that caused this exception.
 
Methods inherited from class consciouscode.seedling.SeedlingException
getMessage, getReason, renderReasonAndCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeException

public NodeException(NodeReference reference,
                     String reason,
                     Throwable cause)
Parameters:
reference - a reference to the problematic node. Must not be null.
reason - an explanation of the problem. May be null.
cause - the exception that caused the problem. May be null.

NodeException

public NodeException(NodeReference reference,
                     String reason)
Parameters:
reference - a reference to the problematic node. Must not be null.
reason - an explanation of the problem. May be null.

NodeException

public NodeException(NodeReference reference,
                     Throwable cause)
Parameters:
reference - a reference to the problematic node. Must not be null.
cause - the exception that caused the problem. May be null.

NodeException

public NodeException(NodeReference reference)
Parameters:
reference - a reference to the problematic node. Must not be null.
Method Detail

getReference

public NodeReference getReference()
Gets a reference to the node that caused this exception.

Returns:
the referenced node; not null.


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.