Friday, September 4, 2020

TRY CATCH CODE IN DYNAMICS AX ,D365 ,AX 2012 CODE

 System.Exception ex;

   try
   {
       FormletterService.Run()      
   }
   catch(Exception::CLRError)
   {
       ex = ClrInterop::getLastException();
        if (ex != null)
        {
           ex = ex.get_InnerException();
           if (ex != null)
           {
               throw error(ex.ToString());
           }
    }

}

No comments:

Post a Comment