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.
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.