spierce7
08/26/2021, 5:00 PMThrowable
inside a coroutine with CancellationException?
I’m not relying on CancellationException
anywhere in code, and I don’t want it to show up in my logs. Should I just be watching for it and then re-throwing it, or is it acceptable to just eat it and not throw it?
} catch (e: CancellationException) {
throw e
} catch (t: Throwable) {
logger.w(RuntimeException("Error validating file", t))
count++
}
louiscad
08/26/2021, 5:11 PMspierce7
08/26/2021, 7:07 PMlouiscad
08/26/2021, 7:10 PM