package com.bonait.bnframework.HBL.Communication.Modbus;

import com.licheedev.modbus4android.ModbusRespException;
import com.serotonin.modbus4j.exception.ModbusInitException;
import com.serotonin.modbus4j.exception.ModbusTransportException;

import java.util.concurrent.ExecutionException;

public interface IExceptionHandling {
    void onSuccess(int add)throws InterruptedException, ExecutionException, ModbusTransportException,
            ModbusInitException, ModbusRespException;


    void onFailure(String error);
}
