Export (0) Print
Expand All

X++ Standards: throw Statements [AX 2012]

Updated: November 30, 2011

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

The throw statement automatically initiates a ttsAbort, which is a database transaction rollback.

The throw statement should be used only if a piece of code cannot do what it is expected to do. The throw statement should not be used for more ordinary program flow control.

Always place an explanation of the throw in the Infolog before the actual throw.


Do not use ttsAbort directly; use throw instead.

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

© 2014 Microsoft