Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can the global error handler be called via TRY-CATCH
Message
 
 
To
26/06/2007 11:55:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01235566
Message ID:
01235709
Views:
19
>>>Hi all
>>>
>>>Is there a mechanism to escalate the error to the global error handler if not handled by the TRY-CATCH. Or do we have to call the global error handler manually?
>>>
>>>Please advise.
>>
>>Check on error command.
>
>Since I had a chat with Bhavbhuti about this, I think the question is "if handled by try-catch, can we still pass it on to the global error handler somehow?". I.e. we catch a few local errors but leave the rest to the global one. I haven't found a way to do that.

Perhaps something like
TRY

CATCH to loException
  if we don't want to use local handling
     pass to global error handler
       =GlobalErrorHandler(loException.ErrorNo, ....)
  endif
endtry
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform