Thursday, May 3, 2012

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));
        }

     }

No comments:

Post a Comment