Variable OnError

Hi

Chapter 3, Variables

// These will all generate errors
variable.value.onError(MyError.anError)
variable.asObservable().onError(MyError.anError)
variable.value = MyError.anError
variable.value.onCompleted()
variable.asObservable().onCompleted()

this code seems to be wrong

it looks like there is no straightforward way to publish an error on variable

is it so?

hi andrew - as the comment suggests all of these aren’t valid code

thnx, i’ve confused errors) my bad

:joy: no worries, I know it can be overwhelming in the first chapters

This topic was automatically closed after 166 days. New replies are no longer allowed.