code: function cancelAndUpdate(newValue) {
          var self = this;
          return storeTaskRunner.run(function() {
  
              if (pushOperation.logRecord.action === 'delete') {
                  throw new Error('Cannot update a deleted record');
              }
              
              if (_.isNull(newValue)) {
                  throw new Error('Need a valid object to update the record');
              }
              
              if (!_.isValidId(newValue.id)) {
                  throw new Error('Invalid ID: ' + newValue.id);
              }
              
              if (newValue.id !== pushOperation.data.id) {
                  throw new Error('Only updating the record being pushed is allowed');
              }
              
              // Operation to update the data record
              var dataUpdateOperation = {
                  tableName: pushOperation.logRecord.tableName,
                  action: 'upsert',
                  data: newValue
              };
              
              // Operation to delete the log record
              var logDeleteOperation = {
                  tableName: operationTableName,
                  action: 'delete',
                  id: pushOperation.logRecord.id
              };
              
              // Execute the log and data operations
              var operations = [dataUpdateOperation, logDeleteOperation];
              return store.executeBatch(operations).then(function() {
                  self.isHandled = true;
              });
          });
      }
docs: Cancels the push operation for the current record and updates the record in the local store.
  This will also set {@link PushError#isHandled} to true.
  
  @function
  @instance
  @memberof PushError
  
  @param {object} newValue New value of the client record that will be updated in the local store.
  
  @returns {Promise} A promise that is fulfilled when the operation is cancelled and the client record is updated.
  The promise is rejected with the error if `cancelAndUpdate` fails.