} else if (getFalseString().equals(value)) {\r
return false;\r
} else {\r
- throw new ConversionException("Cannot convert " + value\r
- + " to Boolean");\r
+ throw new ConversionException("Cannot convert " + value + " to "\r
+ + getModelType().getName());\r
}\r
}\r
\r
Date parsedValue = getFormat(locale).parse(value, parsePosition);\r
if (parsePosition.getIndex() != value.length()) {\r
throw new ConversionException("Could not convert '" + value\r
- + "' to " + getPresentationType().getName());\r
+ + "' to " + getModelType().getName());\r
}\r
\r
return parsedValue;\r
Number parsedValue = getFormat(locale).parse(value, parsePosition);\r
if (parsePosition.getIndex() != value.length()) {\r
throw new ConversionException("Could not convert '" + value\r
- + "' to " + getPresentationType().getName());\r
+ + "' to " + getModelType().getName());\r
}\r
return parsedValue.doubleValue();\r
}\r
Number parsedValue = getFormat(locale).parse(value, parsePosition);\r
if (parsePosition.getIndex() != value.length()) {\r
throw new ConversionException("Could not convert '" + value\r
- + "' to " + getPresentationType().getName());\r
+ + "' to " + getModelType().getName());\r
}\r
\r
if (parsedValue == null) {\r