It is good practice to get rid of exceptions and model your errors. Either is a great way of doing so.
Using sealed classes for errors: You can ‘nest’ sealed classes, have nested, yet exhaustive hierarchies
g
ghedeon
03/06/2019, 3:07 PM
Any good articles on this subject? Why it's a good practice? Aren't coroutines and rxjava relay on exceptions by default?
g
gildor
03/06/2019, 3:54 PM
There is a "debatable" good practice, more functional approach