I believe it cannot handle the success, failure re...
# announcements
j
I believe it cannot handle the success, failure response from the Kotlin API.
m
If you have a Kotlin method that indicates failure by throwing exceptions, then you need to add the
@Throws
annotation to it, so that Objective-C and Swift knows about the exception. Kotlin does not have checked exceptions, but the languages that interop with it does, so you need to help indicate to them what can go wrong. Now if the failure was a RuntimeException due to a bug, then I would probably let it crash the iOS and Android side and the fix the bug.
j
Thank you for your response, I have the throws annotation on the swift function.