nz.ac.waikato.mcennis.rat.graph.property
Class InvalidObjectTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by nz.ac.waikato.mcennis.rat.graph.property.InvalidObjectTypeException
All Implemented Interfaces:
java.io.Serializable

public class InvalidObjectTypeException
extends java.lang.Exception

Error thrown when a new value is added to a property that is not assignable to the class of the property.

See Also:
Serialized Form

Constructor Summary
InvalidObjectTypeException(java.lang.String expected, java.lang.String recieved)
          Define the exception
 
Method Summary
 java.lang.String getMessage()
           
 
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

InvalidObjectTypeException

public InvalidObjectTypeException(java.lang.String expected,
                                  java.lang.String recieved)
Define the exception

Parameters:
expected - string of the class the property objects accept
recieved - string of the class the property objects recieved as a new value
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable