Marc
02/28/2025, 2:40 PM@Throws
annotation on the Kotlin side and now wrapped the Swift side with a
do {
try await operation()
} catch let e as NSError {
...
}
block. Catching the exception kind of works as I can see logs from inside the catch block, but my app still crashes from the already caught and handled exception, saying that it is uncaught. Why is that happening?François
02/28/2025, 3:34 PMMarc
02/28/2025, 3:42 PMNSLog("Exception: \((e.kotlinException as! KotlinThrowable).message)")
prints
App[10692:518585] Exception: Optional("LazyStandaloneCoroutine is cancelling")
François
02/28/2025, 3:59 PMMarc
02/28/2025, 4:04 PMUncaught Kotlin exception: io.ktor.utils.io.errors.PosixException.AddressAlreadyInUseException: EADDRINUSE (48): Address already in use
which I mostly just want to ignore. But now I have the weird problem that the exception does get caught as my catch blocks are running logic, but the app still crashes with the exception shown above.François
02/28/2025, 4:16 PMMarc
02/28/2025, 4:17 PMFrançois
02/28/2025, 4:18 PMMarc
02/28/2025, 4:20 PMFrançois
02/28/2025, 4:23 PMMarc
02/28/2025, 4:24 PMFrançois
02/28/2025, 4:26 PMMarc
02/28/2025, 4:26 PM