[Gambas-user] Global Error Handing

Benoît Minisini gambas at ...1...
Wed Mar 11 11:12:09 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
>

The error handler has to be global, it cannot be specific to a class. And what 
for?

-- 
Benoît





More information about the User mailing list