Hi all
Since we are not able to catch .NET Exceptions in NAV.... I wonder what the preferred workaround is?
At the moment I can think of the following workarounds:
- write a generic .net assembly which uses reflection to call the classes and methods and handles the exceptions in a generic way
- write c# scripts on the fly and use an external engine like CS-Script
- write c# scripts on the fly and use .net internal classes with DotNet Interop to run the script (not sure if that works)
Any other ideas or recommendations?
How do you handle it?
0
Comments
Regards.
In case you need the actual exception message.. you're stuck right?
As an example: WebRequest.GetResponse() throws an WebException and you want to know wheter the http status code is 500, 404 or 200
https://msdn.microsoft.com/de-de/library/system.net.httpwebrequest.getresponse%28v=vs.110%29.aspx
I'm looking for a solution without the installation and deployment hassle.
Regards
http://vjeko.com/tags/exception-handling
B3 Technologies - Making Technology Serve the People
thanks, yes I saw vjeko's blog
My original question was: which of the different solutions (read:workraounds) do you use and why?