improved exception message
This commit is contained in:
Keith Donald
2007-06-13 20:06:34 +00:00
parent 93ee81aea5
commit 106cf6d4d5
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ public class ConversionExecutor {
}
if (source != null && !getSourceClass().isInstance(source)) {
throw new ConversionException(getSourceClass(), source, getTargetClass(),
"Source object '" + source + "' is expected to be a " + getSourceClass());
"Source object '" + source + "' is expected to be an instance of " + getSourceClass());
}
return converter.convert(source, targetClass, context);
}