ribesg
02/19/2019, 9:53 AMThrowable into a NSError or NSException?nestserau
02/19/2019, 12:32 PMribesg
02/19/2019, 12:54 PMTobi
02/19/2019, 1:18 PMSo if Swift or Objective-C code calls a Kotlin method which throws an exception to be handled, then the Kotlin method should be marked with a @Throws annotation. In this case all Kotlin exceptions (except for instances of Error, RuntimeException and subclasses) are translated into a Swift error/NSError.
The interoperability should handle that for you.ribesg
02/19/2019, 3:29 PMThrowable parameter and calls a function taking a NSError. I’m not talking about automatic thrown error translationStefan Oltmann
07/26/2021, 2:25 PMMatthias Geisler
07/30/2021, 7:50 PMAnum Amin
08/17/2025, 11:14 AMThrowable into NSError? Or if there is an alternate? I need to check if it is a network/connectivity error from kotlin