I need to emit a sequence of items if it encounters an error in RxSwift. In JAVA it can be done with "onErrorResumeNext" operator. But I can not find the same operator or its substitute in Swift.
You can use
ObservableType.catchError(handler: (ErrorType) throws -> Observable<E>) -> Observable<E>
Documentation can be found here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With