https://kotlinlang.org logo
Title
b

Byron Woodfork

09/30/2021, 3:48 PM
Anyone have some good literature/blog post recommendations for good ways to handle errors in Kotlin and avoid throwing and catching exceptions needlessly?
a

Alex

09/30/2021, 4:03 PM

https://www.youtube.com/watch?v=jT2gHPQ4Z1Q

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
e

edrd

10/01/2021, 12:06 AM
Also

https://www.youtube.com/watch?v=pvYAQNT4o0I