Is it semantically correct to have an exception within a stream to spun a new stream?
I have a Room with Single<User> get() query, that would return an Exception ((EmptyResultSetException.class). If that's case I would like to create the User.
Something like this
userDao
.get(id)
.onErrorResumeNext( throwable -> if (.......) userDao.insert(user) )