package com.erp.dataimport.exception;

/**
 * 数据导入异常
 */
public class DataImportException extends RuntimeException {

    private String errorCode;

    private String errorField;

    public DataImportException(String message) {
        super(message);
    }

    public DataImportException(String message, Throwable cause) {
        super(message, cause);
    }

    public DataImportException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public DataImportException(String errorCode, String message, String errorField) {
        super(message);
        this.errorCode = errorCode;
        this.errorField = errorField;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorField() {
        return errorField;
    }
}
