Revision 41483 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/feature/exception/IllegalValueException.java

View differences:

IllegalValueException.java
36 36
	 *
37 37
	 */
38 38
	private static final long serialVersionUID = 7398202284121091833L;
39
	private final static String MESSAGE_FORMAT = "Value not allowed for the attribute '%(attribute)'[%(typename)]: %(value).";
39
	private final static String MESSAGE_FORMAT = "Value %(value) not allowed for the attribute '%(attribute)' of type '%(typename)'.";
40 40
	private final static String MESSAGE_KEY = "_IllegalValueException";
41 41

  
42 42
	public IllegalValueException(FeatureAttributeDescriptor attribute,
......
45 45
		setValue("attribute", attribute.getName());
46 46
		setValue("typename", attribute.getDataTypeName());
47 47
		if (value == null) {
48
			setValue("value", "{null}");
48
			setValue("value", "null");
49 49
		} else {
50
			setValue("value", value.toString());
50
			setValue("value", "'"+value.toString()+"'");
51 51
		}
52 52
	}
53 53
	public IllegalValueException(FeatureAttributeDescriptor attribute,

Also available in: Unified diff