Extending NAV: Adding Try-Catch

Most modern languages offer a decent error handling that enables you to catch errors and perform actions. NAV offers such an option as well, but its not so nice to implement and it sometimes you are even forced to waste a precious codeunit just to make…