onError (error) {
    this._state.onError(this, error)
  }
Will be called on errors.
If user-provided observer is present, pass the error
to it's onError method, otherwise set instance variable _error.
@param {Object} error - An error object