for (let index = 0, total = IDs.length; index < total; index++) {
item = IDs[index];
hasError = false;
try{
let id = db.getSiblingDB("door").jhi_user.findOne({"_id" : item});
} catch (error){
failedIDs.push(item);
failedCount++;
hasError = true;
}
...
}
When an error is caught, will the code continue or move to the next iteration?