Let's report something useful in these error messages.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2568 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2009-06-04 20:58:11 +00:00
parent a118198a37
commit 479919a60f
@@ -90,8 +90,7 @@ public class FieldMask
{
Integer index = _descripMap.get(fieldName);
if (index == null) {
String errmsg = "Passed in field not in mask.";
throw new IllegalArgumentException(errmsg);
throw new IllegalArgumentException("Field not in mask: " + fieldName);
}
return _modified[index.intValue()];
}
@@ -117,8 +116,7 @@ public class FieldMask
{
Integer index = _descripMap.get(fieldName);
if (index == null) {
String errmsg = "";
throw new IllegalArgumentException(errmsg);
throw new IllegalArgumentException("Field not in mask: " + fieldName);
}
_modified[index.intValue()] = true;
}