org.simpleflatmapper.map.error.RethrowConsumerErrorHandler 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.error;
import org.simpleflatmapper.map.ConsumerErrorHandler;
import org.simpleflatmapper.util.ErrorHelper;
public class RethrowConsumerErrorHandler implements ConsumerErrorHandler {
public static RethrowConsumerErrorHandler INSTANCE = new RethrowConsumerErrorHandler();
private RethrowConsumerErrorHandler() {
}
@Override
public void handlerError(Throwable t, Object target) {
ErrorHelper.rethrow(t);
}
}