}
n = last_edit;
continue; // This batch failed, move on.
} // else: parse out the individual results:
for (int j = 0; j < nresults; j++) {
final ResultOrException roe = results.getResultOrException(j);
final int index = roe.getIndex();
if (index != n) {
throw new InvalidResponseException("Expected result #" + n
+ " but got result #" + index,
results);
}
final Object result;
if (roe.hasException()) {
final NameBytesPair pair = roe.getException();
// This RPC failed, get what the exception was.
result = RegionClient.decodeExceptionPair(batch.get(n), pair);
} else {
// We currently don't care what the result was: if it wasn't an
// error, it was a success, period. For a put/delete the result