Open j796160836 opened 6 years ago
I refer these https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling https://github.com/ReactiveX/RxJava/issues/5242 https://github.com/ReactiveX/RxJava/issues/5099
so I wrote this and get app stable
RxJavaPlugins.setErrorHandler { e ->
when (e) {
is UndeliverableException -> {
// sallow that
}
else -> {
throw e
}
}
}
Am I doing right?
You should probably update RxJava dependency to the latest version (2.1.9). RxKotlin is only set of handy extension functions over RxJava and RxJava is providing you with actual functionality. Next time you will have any issues it is better to recreate your code with pure java and post ticket to RxJava github page - where more people will see your post and you will get better and quicker support :)
okay, thanks Taras. I will try to translate to pure Java code and ask again.
Hi there, I'm newbie for RxKotlin, trying write some code at Android. But I found a (maybe?) a bug and got crazy on this issues. There is the simplified example.
I wrote a sample module with a error method with error.
(think it as network APIs but no internet)
And I do a
Observables.combineLatest()
to combine different results. For simplify example, I using combine same things twice. (think it as combining different network APIs)In this scenario, two method both will cause error.
So I will get this
UndeliverableException
.I supposed that will catch at the
onError = { ... }
method, but actually not. How should I do for this error handling? I use these modules for the sample.