Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Tuesday, August 30, 2016

The System Exception Handler in AX 2012

Hi,

An Exception can be handed in AX 2012 by try, catch, retry, throw whereas there is no Finally here.

Once you defined try but there is not catch handling for specified error that will be handled by system itself. but we cannot trace out the error.

In this cases AX system gives an opportunity to handle that kind of developers unspecified exceptions will be handled by
Global::error / Global::Warning /Global::Info.

With reference to this Global class we can trace-out error.

Thanks,

No comments:

Post a Comment

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...