package org.easybatch.core.api;

import java.util.Set;
import java.util.logging.Level;

/**
 * Interface for handling rejected record
 *
 * @author Chellan https://github.com/chellan
 */
public interface RejectedRecordHandler  {

    /**
     * @param recordNumber - the current number of rejected record
     * @param record - the current error rejected number
     * @param e - the exception
     * @return void
     */
    void handle(final int recordNumber, final Record record, final Throwable e);
    
    /**
     * @param recordNumber - the current number of rejected record
     * @param record - the current error rejected number
     * @param validationsErrors - a set of validationsErrors that caused that record to be rejected
     * @return void
     */
    void handle(final int recordNumber, final Record record, Set<ValidationError> validationsErrors);

}

@@ -51,40 +51,8 @@
 Set;
-%0Aimport java.util.logging.Level;
 %0A%0A/*

remove unused import