}
throw Lang.makeThrow("'%s'.'%s' can only be CharSequence or Integer",
fld.getDeclaringClass().getName(), fld.getName());
}
private ErrorEntitySyntaxException error(Entity<?> entity, String fmt, Object... args) {
return new ErrorEntitySyntaxException(String.format("[%s] : %s",
null == entity ? "NULL"
: entity.getType()
.getName(),
String.format(fmt, args)));
}