Jan Skrasek
06/30/2022, 9:46 AMmyanmarking
06/30/2022, 10:16 AMJoost Klitsie
06/30/2022, 11:26 AMJan Skrasek
06/30/2022, 1:15 PMThe default in Kotlin is to use exceptions for input/output. This way you can write dense logic of your code, without having to worry about potential network errors that each individual call could produce
...
You should not be writing boilerplate code to handle a potential network error in each individual network request in your application’s logic.
myanmarking
06/30/2022, 1:18 PMYou should not be writing boilerplate code to handle a potential network error in each individual network request in your application’s logic.Ya, kind of. You have to write boilerplate anyway, being it an exception or a sealed class. So, you can map in the UI either an exception or an error sealed class either way,
Nick Allen
06/30/2022, 5:24 PM