frink.errors
Class UnexpectedTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by frink.errors.FrinkException
              extended by frink.errors.FrinkConversionException
                  extended by frink.errors.UnexpectedTypeException
All Implemented Interfaces:
java.io.Serializable

public class UnexpectedTypeException
extends FrinkConversionException

This class represents an exception which is thrown when one of the getter or setter methods expects a value that can't be converted to that type.

Author:
Alan Eliasen, eliasen@mindspring.com
See Also:
Serialized Form

Constructor Summary
UnexpectedTypeException(java.lang.String variable, frink.numeric.Numeric num, java.lang.String unit, frink.numeric.NumericException ne)
          Construct an UnexpectedTypeException with the specified math exception
UnexpectedTypeException(java.lang.String variable, java.lang.String expected, frink.expr.Expression actual, frink.expr.Environment env)
          Construct an UnexpectedTypeException with the specified message.
 
Method Summary
 
Methods inherited from class frink.errors.FrinkException
toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnexpectedTypeException

public UnexpectedTypeException(java.lang.String variable,
                               java.lang.String expected,
                               frink.expr.Expression actual,
                               frink.expr.Environment env)
Construct an UnexpectedTypeException with the specified message.


UnexpectedTypeException

public UnexpectedTypeException(java.lang.String variable,
                               frink.numeric.Numeric num,
                               java.lang.String unit,
                               frink.numeric.NumericException ne)
Construct an UnexpectedTypeException with the specified math exception