Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enhancing error handler
Message
From
01/06/2021 10:47:11
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01680822
Message ID:
01680869
Views:
45
>I want to add the logging of the ALIAS() at the time of the error. Right now the error class does not do it. So, here is what I see (and in initial test works) can be done:
>
>The error handler is instantiated with the following code:
>
>lcError = lcErrorObj + '.ErrorHandler(error(), sys(16), lineno())'
>
>
>So, I added the alias() to the above, as follows:
>
>lcError = lcErrorObj + '.ErrorHandler(error(), sys(16), lineno(), ALIAS())'
>
>
>Therefore, now the method ErrorHandler gets 4 parameters, the last of which is the alias()
>
>Anyone sees a potential problem with the above?

No, I recently added the same code to my copy of the class.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform