Catch
recover from an onError notification by continuing the sequence without error
See Also
Language-Specific Information
RxClojure catch*
RxCpp
RxCpp does not implement the Catch operator.
RxGroovy onErrorResumeNext onErrorReturn onExceptionResumeNext
RxGroovy implements the Catch operator in the same way as does RxJava. There are three distinct operators that provide this functionality:
onErrorReturn
- instructs an Observable to emit a particular item when it encounters an error, and then terminate normally
onErrorResumeNext
- instructs an Observable to begin emitting a second Observable sequence if it encounters an error
onExceptionResumeNext
- instructs an Observable to continue emitting items after it encounters an exception (but not another variety of throwable)
onErrorReturn
onErrorResumeNext
onExceptionResumeNext
RxJava 1․x onErrorResumeNext onErrorReturn onExceptionResumeNext
RxJava implements the Catch operator with three distinct operators:
onErrorReturn
- instructs an Observable to emit a particular item when it encounters an error, and then terminate normally
onErrorResumeNext
- instructs an Observable to begin emitting a second Observable sequence if it encounters an error
onExceptionResumeNext
- instructs an Observable to continue emitting items after it encounters an exception (but not another variety of throwable)
onErrorReturn
onErrorResumeNext
onExceptionResumeNext
RxJS catch onErrorResumeNext
RxJS implements the Catch operator with two distinct operators:
catch
- instructs an Observable to begin emitting a second Observable sequence if it encounters an error
onErrorResumeNext
- instructs an Observable to begin emitting a second Observable sequence if it encounters an error or if the source Observable terminates normally
catch
onErrorResumeNext
RxKotlin onErrorResumeNext onErrorReturn onExceptionResumeNext
RxKotlin implements the Catch operator in the same way as does RxJava. There are three distinct operators that provide this functionality:
onErrorReturn
- instructs an Observable to emit a particular item when it encounters an error, and then terminate normally
onErrorResumeNext
- instructs an Observable to begin emitting a second Observable sequence if it encounters an error
onExceptionResumeNext
- instructs an Observable to continue emitting items after it encounters an exception (but not another variety of throwable)
onErrorReturn
onErrorResumeNext
onExceptionResumeNext
RxNET Catch OnErrorResumeNext
Rx.NET implements the Catch operator with two distinct operators:
Catch
- instructs an Observable to begin emitting a second Observable sequence if it encounters an error
OnErrorResumeNext
- instructs an Observable to begin emitting a second Observable sequence if it encounters an error or if the source Observable terminates normally
Catch
OnErrorResumeNext
RxPHP catch
RxPY catch_exception on_error_resume_next
RxPY implements the Catch operator with two distinct operators:
catch_exception
- instructs an Observable, if it encounters an error, to begin emitting items from a set of other Observables, one Observable at a time, until one of those Observables terminates successfully
on_error_resume_next
- instructs an Observable to concatenate items emitted by a set of other Observables, one Observable at a time, regardless of whether the source Observable or any subsequent Observable terminates with an error
catch_exception
on_error_resume_next
Rxrb on_error_resume_next rescue_error
Rx.rb implements the Catch operator with two distinct operators:
rescue_error
- instructs an Observable to begin emitting items from another Observable, or from an Observable returned from an action, if it encounters an error
on_error_resume_next
- instructs an Observable to concatenate items emitted by another Observable to the sequence emitted by the source Observable, regardless of whether the source Observable terminates normally or with an error
rescue_error
on_error_resume_next
RxScala onErrorFlatMap onErrorResumeNext onErrorReturn onExceptionResumeNext
Rx.rb implements the Catch operator with four distinct operators:
onErrorFlatMap
- replaces all
onError
notifications from a misbehaving Observable into the emissions from a secondary Observable onErrorResumeNext
- instructs an Observable to begin emitting a second Observable sequence if it encounters an error
onErrorReturn
- instructs an Observable to emit a particular item when it encounters an error, and then terminate normally
onExceptionResumeNext
- instructs an Observable to continue emitting items after it encounters an exception (but not another variety of throwable)
onErrorFlatMap
onErrorResumeNext
onErrorReturn
onExceptionResumeNext
© ReactiveX contributors
Licensed under the Apache License 2.0.
http://reactivex.io/documentation/operators/catch.html