Microsoft Dynamics Ax, Application Integration Framework, X++ programming, AX 2009 , 2012. Enterprise portal, SharePoint , BI Tools, OLAP, OLTP, DAX, SQL Database, SSRS,SSIS,SSAS, Workflow.

Sunday, January 20, 2013

Concept of exception handling in X++ programming

Main idea behind exception handling in X++ programming

The main idea behind exception handling is to plan for potential pitfalls within the program. These exceptions are inevitable and if the code can expect some of these issues and have contingency plans for the code, the flow of the program is more efficient.

The try statement defines a block of code that is included in the try-catch statement. It is used as the point to which the logical program flow will return should it encounter a retry command.

The throw statement automatically initiates a ttsAbort statement every time that it is called. The throw statement will force the current transaction to roll back to its original state before the ttsBegin statement.
Active Search Results Technology Blogs