Исключения в Kotlin не стоит описывать как object, иначе можем получить некорректный stacktrace
#kotlin #exception #stacktrace #singleton
https://medium.com/@michalankiersztajn/why-exceptions-shouldnt-be-objects-in-kotlin-ad73429cc226
#kotlin #exception #stacktrace #singleton
https://medium.com/@michalankiersztajn/why-exceptions-shouldnt-be-objects-in-kotlin-ad73429cc226
Medium
Why Exceptions shouldn’t be objects in Kotlin
Learn why Exception shouldn’t be an object. What can happen and why? Deep dive into the internals of object and Exception!