Dynamics AX FAQ / Tips & Tricks / X++ Development
Query: How to catch CLR Exception?
Answer:
catch (Exception::CLRError) { info("Caught 'Exception::CLRError'."); netExcepn = CLRInterop::getLastException(); info(netExcepn.ToString()); }
If you need the InnerException:http://axbrasil.com/2013/03/22/dax2009-handling-net-exceptions/
If you need the InnerException:
ReplyDeletehttp://axbrasil.com/2013/03/22/dax2009-handling-net-exceptions/