Kotlin 1.7 says that it doesn’t allow exceptions t...
# kotlin-native
s
Kotlin 1.7 says that it doesn’t allow exceptions to cross the objc bridge now. Isn’t this a bad thing? If I provide a Kotlin native library that makes a network call and it gets an HTTP Exception, I can no longer allow the calling code to handle the exception? Is that correct?
l
It looks like the Throws annotation still works as before. You just have to make sure to add the annotation to your Kotlin method.
https://kotlinlang.org/docs/whatsnew17.html#prohibited-undeclared-exceptions-through-objective-c-bridges It looks like this was always what they expected, but there were some places where exceptions made it through. It looks like they’re just cleaning these up for consistency.
s
oh good
the kotlin 1.7 video is very misleading