try{
}catch(DMLException e){
for (Integer i = 0; i < e.getNumDml(); i++) {
// Process exception here
System.debug(e.getDmlMessage(i));
LineItemList [i].adderror(e.getDmlMessage(i));
}
}
}catch(DMLException e){
for (Integer i = 0; i < e.getNumDml(); i++) {
// Process exception here
System.debug(e.getDmlMessage(i));
LineItemList [i].adderror(e.getDmlMessage(i));
}
}
No comments:
Post a Comment