Hi every one. How to get global exception error in...
# multiplatform
h
Hi every one. How to get global exception error in iOS?
Copy code
Uncaught Kotlin exception: kotlin.IndexOutOfBoundsException: index: 2, size: 0
    at 0   WalletUI                            0x102df1f57        kfun:kotlin.Throwable#<init>(kotlin.String?){} + 119 
    at 1   WalletUI                            0x102deb2cf        kfun:kotlin.Exception#<init>(kotlin.String?){} + 115 
    at 2   WalletUI                            0x102deb5e3        kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 115 
    at 3   WalletUI                            0x102deb803        kfun:kotlin.IndexOutOfBoundsException#<init>(kotlin.String?){} + 115
Thanks
j
Not sure I get your question, can you please rephrase? The stack trace you've posted shows just the throwing, not what caused the exception...
h
https://forums.developer.apple.com/forums/thread/113659 I wanna get Uncaught Kotlin exception in Global catch of exceptions. But don’t exactly signal(Key) to get it.
j
From some reason, the link you've posted doesn't open for me; but I guess you are searching for this: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/set-unhandled-exception-hook.html
1
h
Oh that’s it!! Many thanks for your help @Jan Holešovský
👍 1