Hi, is there a way to set an unhandled reaktive ex...
# reaktive
m
Hi, is there a way to set an unhandled reaktive exception handler similar to Rx? I’m having trouble tracking down a native crash on iOS coming from CreateDefaultUncaughtErrorHandler and the stack trace doesn’t give much clues. abort() is called so it crashes the app. I’d like to set the default handler to log the error but not crash the app.
a
Basically you should create an implementation of
ReaktivePlugin
interface, and register it using
registerReaktivePlugin
function.
m
Thanks I’ll take a look
I found this global:
Copy code
reaktiveUncaughtErrorHandler
Would it be safe on app start to set that global to a callback, and then log the error?
a
If you just need to log the error, then you can use it. But it should log the error by default
m
Ok got it, I’m trying to log the error and not crash app, I think the default implemention calls abort()
a
Ah yes, then you can use it
m
cool I think I’ll do that as a quick fix, and then look at the plugin way
a
The Plugin would allow you to intercept assembly calls, so you could achieve something like what Traceur lib does for RxJava.
👍 1