Handling exceptions inside NAV when using Web Services integration

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).

Bron : Stefano Demiliani
Lees meer…

.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.

Bron : Microsoft Dynamics NAV Team Blog
Lees meer…