Showing posts with label CLR Exception Catch Dynamics AX. Show all posts
Showing posts with label CLR Exception Catch Dynamics AX. Show all posts

Wednesday, June 1, 2011

CLR Exception Catch

Query: How to catch CLR Exception?
Answer:  
catch (Exception::CLRError)
{
        info("Caught 'Exception::CLRError'.");
        netExcepn = CLRInterop::getLastException();
        info(netExcepn.ToString());
}