rx.Observable onErrorResumeNext 和 onExceptionResumeNext 有什么区别

What is the difference between rx.Observable onErrorResumeNext and onExceptionResumeNext

rx.Observable.onErrorResumeNextrx.Observable.onExceptionResumeNext有什么区别?

据我了解:

onErrorResumeNextThrowable 触发。

onExceptionResumeNext 仅由 Exception 触发。

我还遗漏了其他详细信息吗?

查看 onExceptionResumeNext() 的文档:

Instructs a reactive type to continue emitting items after it encounters an java.lang.Exception. Unlike onErrorResumeNext, this one lets other types of Throwable continue through.

因此 onExceptionResumeNext() 仅“捕获”异常,onErrorResumeNext() 将“捕获”任何 Throwable 实例。