use of com.thoughtworks.xstream.converters.ConversionException in project ddf by codice.
the class TransactionRequestConverter method getRecordPropertyValue.
private Serializable getRecordPropertyValue(HierarchicalStreamReader reader, String cswField) {
try {
Serializable newValue;
if (reader.hasMoreChildren()) {
reader.moveDown();
newValue = readPropertyValue(reader, cswField);
reader.moveUp();
} else {
newValue = readPropertyValue(reader, cswField);
}
return newValue;
} catch (NumberFormatException e) {
throw new ConversionException("Invalid Parameter Value: a RecordProperty " + "specified a Value that does not match the type " + cswField + " expected by for the field " + cswField, e);
}
}
Aggregations