In a forum post I’ve recently received a request on how to handle a scenario like the following: an external client application has to call a Microsoft Dynamics NAV object (codeunit) published as Web Service. The codeunit receives input data from the external application and then performs some operations on NAV (the business logic is managed by NAV itself).
Tag Archives: Exception
NAV Design Pattern: TryFunction – .NET Exception Handling in C/AL
When you want to use objects from the .NET Framework in C/AL code, one of the main challenges is to handle exceptions that the methods of these objects may throw.
.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.
How Do I: Handle exceptions using the GETLASTERROROBJECT function in Microsoft Dynamics NAV 2015
This video demonstrates how to handle exceptions using the GETLASTERROROBJECT function in Microsoft Dynamics NAV 2015.