3 ms·
> e.g kotlin exceptions cant be caught from swift FWIW the approach that swift-java takes in managing interop with Java (and potentially Kotlin) function calls
by airspeedswift 11mo ago
> e.g kotlin exceptions cant be caught from swift
FWIW the approach that swift-java takes in managing interop with Java (and potentially Kotlin) function calls means it is perfectly possible to to catch exceptions thrown by the JVM using wrappers that catch and rethrow them as Swift errors. So there would be a distinction here with bringing Swift calling into JVM-based code running on Android.
- andrekandre 11mo ago> catch and rethrow them as Swift errors yes, in fact we implemented some wrappers for that which was done using custom annotations from the kotlin side, though if you forgot to apply it, an exception would crash our ios app… which was unfortunately not the greatest experience for ios users (who were the majority of our customers anyways)