TryFunction – .NET Exception Handling in C/AL


“When there is a need to use .NET classes within C/AL, one of the main challenges is to handle the exceptions the methods of these .NET classes may throw. Eventually, if not handled, they will basically bubble up as runtime errors, halting the current operation a user is doing without having a chance to properly display errors in a user-friendly format”


by Mostafa Balat, Microsoft Development Center Copenhagen