Home SALESFORCEAPEX Exception Handling
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));
        }

     }

You may also like

Leave a Comment