@antunflas suggested to wrap Critical errors into GoldfingerException and throw them to Observable's onError method. I agree that it makes more sense semantically as we do not send any more events after critical error happens.
I am just not sure would it make sense to have recoverable errors in onNext and unrecoverable in onError as we created Error API with isCritical() method. In that case, for Rx module, that method would not even be necessary.
@antunflas suggested to wrap Critical errors into
GoldfingerException
and throw them to Observable'sonError
method. I agree that it makes more sense semantically as we do not send any more events after critical error happens.I am just not sure would it make sense to have recoverable errors in onNext and unrecoverable in onError as we created Error API with
isCritical()
method. In that case, for Rx module, that method would not even be necessary.What is your opinion?
@mariciv @dmarusic35 @ikocijan @zplesac