Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 17314

Exception Handling in AX

$
0
0
Today I will demonstrate you that how to use Try, Catch, Throw and Retry keyword in AX. Try-Catch-Retry-Throw static void ExceptionHandling(Args _args) { try { info("Now I’m here"); if (true) throw error("Oops! Something happened"); info("Now I’m there"); } catch (Exception::Error) { info ("I would like to inform you that an error occured "); } catch (Exception::Deadlock) { sleep(10000); retry; } info ("This is the end"); }...(read more)

Viewing all articles
Browse latest Browse all 17314

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>