use of org.jaffa.datatypes.exceptions.FormatCurrencyException in project jaffa-framework by jaffa-projects.
the class CurrencyCriteriaField method parseAndAdd.
private static void parseAndAdd(String str, CurrencyFieldMetaData meta, List values) throws FormatCurrencyException {
try {
Currency parsedValue = null;
if (str != null && str.length() > 0) {
if (meta != null)
parsedValue = Parser.parseCurrency(str, meta.getLayout());
else
parsedValue = Parser.parseCurrency(str);
}
values.add(parsedValue);
} catch (FormatCurrencyException e) {
e.setField(meta != null ? meta.getLabelToken() : "");
throw e;
}
}
Aggregations