How to reuse Kotlin coroutine after error handling?

#1

How reuse the coroutine after error handling? In my code I recreate a new job and scope instance when any error on coroutine (using CoroutineExceptionHandler), It work’s, buy I think that it is not a good chooise, maybe have another alternative.

My code:

fun getDashBoardData() {
            loadingStateLiveData.value = true
            scope.launch(scope.coroutineContext + CoroutineExceptionHandler { _, e ->
                assetsBalanceLiveData.postValue(Resource.error(app.getString(R.string.no_connection), null))
                Log.e(TAG, "CoroutineExceptionHandler - ${e.message}")
                job = Job()
                scope = CoroutineScope(Dispatchers.Default + job)
                loadingStateLiveData.postValue(false)
            }) {
              // SUSPENDED FUN   
              assetsBalanceLiveData.postValue(DashboardRepository.getUserAssetsBalance())

              // SUSPENDED FUN    
              incomeGraphDataLiveData.postValue(DashboardRepository.getIncomeGraphData())
              loadingStateLiveData.postValue(false)
            }
        }
Call coroutine again when error occurs