All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.simpleflatmapper.map.ResultFieldMapperErrorHandler Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
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