org.simpleflatmapper.map.ResultFieldMapperErrorHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-map Show documentation
Show all versions of sfm-map Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.simpleflatmapper.map;
import org.simpleflatmapper.converter.Context;
import java.util.ArrayList;
public class ResultFieldMapperErrorHandler implements FieldMapperErrorHandler {
@SuppressWarnings("unchecked")
public void errorMappingField(K key, Object source, Object target, Exception error, Context mappingContext) throws MappingException {
ArrayList> list = mappingContext.context(0);
list.add(new Result.FieldError(key, error));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy