Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enhancing error handler
Message
 
 
To
01/06/2021 10:47:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01680822
Message ID:
01680870
Views:
32
>>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

Thank you!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform