consciouscode.seedling
Class WrongNodeTypeException

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

public class WrongNodeTypeException
extends NodeException

Indicates that a requested Seedling node has the wrong type.

See Also:
Serialized Form

Constructor Summary
WrongNodeTypeException(NodeReference reference, Class<?> expectedType, Class<?> actualType)
           
 
Method Summary
 String getMessage()
           
 
Methods inherited from class consciouscode.seedling.NodeException
getReference
 
Methods inherited from class consciouscode.seedling.SeedlingException
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

WrongNodeTypeException

public WrongNodeTypeException(NodeReference reference,
                              Class<?> expectedType,
                              Class<?> actualType)
Parameters:
reference - a reference to the problematic node. Must not be null.
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class SeedlingException


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