making setBatteryModuleError public