codelab-kotlin-coroutines icon indicating copy to clipboard operation
codelab-kotlin-coroutines copied to clipboard

Why propagate the use of Exceptions?

Open Frank1234 opened this issue 5 years ago • 0 comments

Could you please explain why the codelab's code relies so heavily on exceptions and exception handling? Why are exceptions thrown in normal code flows? Why isn't an alternative used, like sealed response classes or something similar?

It feels to me that you are propagating a bad practice. The thrown exceptions are not even documented in the method comments.

Frank1234 avatar May 10 '20 14:05 Frank1234