Roman Elizarov
1 min readJun 10, 2020

--

I see no contradiction here. For some applications it makes a total sense to define some kind of common framework-level "error container" class and use it everywhere. It is another approach to centralize your error handling, since you can have your project specific extension that handle the errors in the ways appropriate to your project. Since Kotlin is a general-purpose language, it is hard for us to provide something like this out-of-the-box to fit all the various domain-specific issues people have.

--

--

Roman Elizarov
Roman Elizarov

Written by Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

No responses yet