summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/data/util/converter/StringToBooleanConverter.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2011-12-22 22:23:14 +0200
committerArtur Signell <artur@vaadin.com>2011-12-22 23:17:20 +0200
commited6fd1705050f6d3c552a27e90388f4423857524 (patch)
tree4c8ec00c45b38c2855aae937ae6eab22d3e99034 /src/com/vaadin/data/util/converter/StringToBooleanConverter.java
parent0f2cb7d64e1296dc364056d52b9c5adc637adbb6 (diff)
downloadvaadin-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.java4
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());
}
}