code: function (error) {
          checkDisposed(this);
          if (!this.isStopped) {
            this.isStopped = true;
            this.error = error;
            this.hasError = true;
            for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) {
              os[i].onError(error);
            }
  
            this.observers.length = 0;
          }
        }
docs: Notifies all subscribed observers about the exception.
  @param {Mixed} error The exception to send to all observers.