code: function (error) {
      // update status
      me.resolved = false;
      me.rejected = true;
      me.pending = false;
  
      _onFail.forEach(function (fn) {
        fn(error);
      });
  
      _process = function (onSuccess, onFail) {
        onFail(error);
      };
  
      _resolve = _reject = function () { }
  
      return me;
    }
docs: Reject the promise
  @param {Error} error
  @type {Function}