catch And Resume
Catches exceptions in the flow completion and emits all the items from the fallback flow. If the fallback flow also throws an exception, the exception is not caught and is rethrown.
fun <T> Flow<T>.catchAndResume(fallbackSupplier: suspend (cause: Throwable) -> Flow<T>): Flow<T>(source)
Catches exceptions in the flow completion and emits all the items provided by fallbackSupplier. If the fallback flow also throws an exception, the exception is not caught and is rethrown.