Hi ,
Iam new to navision ,i want to know about the exception handling in navision .please give me suggestions if any.
Thanks in advance,
Deepu.
There is no something like exceptions in NAV. If error is called, whole transaction is stopped and rolled back. No more code is processed.
Exception is construction like
if codeunit.run then
which will in case of error during the OnRun of the codeunit will not show the error to user but will result into False. If all is ok, result will be True. In versions prior to 5.0 you cannot get the error details, in 5.0+ you can use the GETLASTERRORTEXT system variable to read the text of the error which rolled back the process called in this construction...
And one thing: NAV is working without the exception handling and this is not the main thing you need to solve in NAV... and it is why all is so easy to customize...
Comments
Our navision 4.0 is Object based language (menas not object oriented)
I think so we cannot handle Exceptions.
when the exception raise, we should manually handle..
srinivas
"Delighting Customers.... Through Delivery Excellence" .
There is no something like exceptions in NAV. If error is called, whole transaction is stopped and rolled back. No more code is processed.
Exception is construction like which will in case of error during the OnRun of the codeunit will not show the error to user but will result into False. If all is ok, result will be True. In versions prior to 5.0 you cannot get the error details, in 5.0+ you can use the GETLASTERRORTEXT system variable to read the text of the error which rolled back the process called in this construction...
And one thing: NAV is working without the exception handling and this is not the main thing you need to solve in NAV... and it is why all is so easy to customize...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.