package es.tid.ps.kpicalculation.data;

import es.tid.ps.kpicalculation.data.KpiCalculationCounter;

/**
 * Extends RuntimeException and allows to notify mappers about errors in the
 * input data received.
 * 
 * @author javierb
 */
public class KpiCalculationDataException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    
    public KpiCalculationDataException(String message, Throwable cause,
            KpiCalculationCounter lineFilteredExtension) {
        super(message, cause);
        counter = lineFilteredExtension;
    }

    private KpiCalculationCounter counter;

    public KpiCalculationDataException(String message,
            KpiCalculationCounter lineFilteredExtension) {
        super(message);
        counter = lineFilteredExtension;
    }

    public KpiCalculationCounter getCounter() {
        return counter;
    }

}
package es.tid.ps.kpicalculation.data;

import es.tid.ps.kpicalculation.data.KpiCalculationCounter;

/**
 * Extends RuntimeException and allows to notify mappers about errors in the
 * input data received.
 * 
 * @author javierb
 */
public class KpiCalculationDataException extends RuntimeException {
    private static final long serialVersionUID = -8134324326773415950L;

    private KpiCalculationCounter counter;

    public KpiCalculationDataException(String message, Throwable cause,
            KpiCalculationCounter lineFilteredExtension) {
        super(message, cause);
        this.counter = lineFilteredExtension;
    }

    public KpiCalculationDataException(String message,
            KpiCalculationCounter lineFilteredExtension) {
        super(message);
        this.counter = lineFilteredExtension;
    }

    public KpiCalculationCounter getCounter() {
        return this.counter;
    }
}
Add automatically generated UID in the KpiCalculationDataException class.