[Gambas-user] Global Error Handing

nando nando_f at ...951...
Tue Mar 10 18:31:54 CET 2009


Benoit, I was thinking about the same thing.
What is there was a method: _error (the brother to _new)
If present in a class, a class error falls into it as a default handler
Any error here most-liekly will implement Try/Catch by the programmer but
_error will not catch itself: an internal flag set the first time
_error runs, if it attempted to catch itself would notice
the flag set, return, and the immediately notice it returned
with an error, thus returning, exiting the class.
-Nando


---------- Original Message -----------
From: Benoît Minisini <gambas at ...1...>
To: richard terry <rterry at ...1946...>, mailing list for gambas users
<gambas-user at lists.sourceforge.net>
Sent: Mon, 9 Mar 2009 16:15:14 +0100
Subject: Re: [Gambas-user] Global Error Handing

> > Question:
> >
> > Does gambas have any mechanism for global error handling -e.g error rigging
> > an entire project including all subroutines with a master error handler,
> > which would catch all un-handled fatal errors, and do something like pop up
> > a dialog box with options for user to type in what they were doing, write
> > to log file, email the developer?
> >
> > If not, how are other people handling this - I know there is the CATCH
> > statement.
> >
> > If not, are there any plans to do this.
> >
> > Regards
> >
> > Richard
> >
> 
> The mechanism exist internally - i.e. you can write a global error handler for 
> uncatched errors in a C/C++ component.
> 
> But you cannot do that in Gambas.
> 
> Apparently it could be a good feature to implement, but I'm not sure there is 
> no logical problems. For example, what to do if there is an error during the 
> global error event handler?
> 
> -- 
> Benoît
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list