Anyone have some good literature/blog post recommendations for good ways to handle errors in Kotlin and avoid throwing and catching exceptions needlessly?
One part of the video he explains about exceptions, not sure if this will aid your question
k
Klitos Kyriacou
09/30/2021, 4:09 PM
Equivalent to Java's try-with-resources, to guarantee closing a resource even if an exception is thrown: use
To return the result as either a value on success or an exception on failure: Result class