Error_Handling

Error Handling

Debug

You can po event chains as well in order to see how it pans through the code live

po observer.onError(networkError)

This will execute that instruction and also in the same way show how the error propagates into the rx stream chain.

Pipe Errors

Simulate some events based on Observable being returned as error.

yetAnotherSubject
	.mapToVoid()
	.map { return NSError(domain: "test error 2", code: -1) }
	.bind(to: observingSubject)
	.disposed(by: disposeBag)

Resources

rxswift-errors-done-right

Github RxSwift Issue errors

Rx Common issues

Handle errors in RxSwift

SO | chain-web-services-with-rx-how-to-recover