Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try... this.error()... and then catch
Message
From
07/05/2004 20:09:16
 
 
To
07/05/2004 12:39:03
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00897769
Message ID:
00902132
Views:
20
Sorry for jumping in Fabio.


2. I can use this sequence for escalade a error
when it is trapped into a object Error event
Procedure Error(nError, cMethod, nLine)
    ? "Class error catching",ERROR(),MESSAGE()
    TRY
       THROW	&& this escalade the error to the first try/endtry level
    ENDTRY
ENDPROC
Though this will throw and exception out of the error method it really does't escalate the original error (IMO it should). Your code will throw a "user thrown error" to a higher handler. So in a sense it's not really escalating the exception.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform