public class UnexpectedTypeException extends FrinkConversionException
| Constructor and Description |
|---|
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.
|
toStringpublic UnexpectedTypeException(java.lang.String variable,
java.lang.String expected,
frink.expr.Expression actual,
frink.expr.Environment env)
variable - The name of the variable that was requestedexpected - The expected type that was requestedactual - The actual value that was containedenv - The Environment (used to format the message)public UnexpectedTypeException(java.lang.String variable,
frink.numeric.Numeric num,
java.lang.String unit,
frink.numeric.NumericException ne)
variable - The name of the variable that was requestednum - The number that was attempted to be setunit - The unit that was usedne - The NumericException that triggered this exception