diff options
author | Artur Signell <artur@vaadin.com> | 2011-12-22 22:23:14 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2011-12-22 23:17:20 +0200 |
commit | ed6fd1705050f6d3c552a27e90388f4423857524 (patch) | |
tree | 4c8ec00c45b38c2855aae937ae6eab22d3e99034 /src/com/vaadin/data/util/converter/StringToBooleanConverter.java | |
parent | 0f2cb7d64e1296dc364056d52b9c5adc637adbb6 (diff) | |
download | vaadin-framework-ed6fd1705050f6d3c552a27e90388f4423857524.tar.gz vaadin-framework-ed6fd1705050f6d3c552a27e90388f4423857524.zip |
Corrected error message to show model and not presentation type when
conversion fails
Diffstat (limited to 'src/com/vaadin/data/util/converter/StringToBooleanConverter.java')
-rw-r--r-- | src/com/vaadin/data/util/converter/StringToBooleanConverter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/vaadin/data/util/converter/StringToBooleanConverter.java b/src/com/vaadin/data/util/converter/StringToBooleanConverter.java index 1913266db2..3b2034a361 100644 --- a/src/com/vaadin/data/util/converter/StringToBooleanConverter.java +++ b/src/com/vaadin/data/util/converter/StringToBooleanConverter.java @@ -41,8 +41,8 @@ public class StringToBooleanConverter implements Converter<String, Boolean> { } else if (getFalseString().equals(value)) {
return false;
} else {
- throw new ConversionException("Cannot convert " + value
- + " to Boolean");
+ throw new ConversionException("Cannot convert " + value + " to "
+ + getModelType().getName());
}
}
|