[Gambas-user] Error Management
T Lee Davidson
t.lee.davidson at gmail.com
Tue Mar 26 23:44:33 CET 2019
On 3/26/19 5:41 PM, Tobias Boege wrote:
> One thing I have to object to is the half-sentence
>
>> An error in the Model will not bubble up through the subroutine stack
>> automatically [...]
> because it will. When an error is raised, Gambas stops execution of the
> current frame and looks for error handlers -- Try, Catch or Finally.
> If it can't find them, it walks up the call stack and successively looks
> for error handlers there, until it reaches the global level where you
> can have a Static Public Sub Application_Error() in the startup class.
> If the error wasn't handled, the interpreter prints it and exits.
You are right, Tobi, again. :-) My bad. I think I got confused on that due to the IDE kindly showing me where the uncaught error
occurred.
Thank you for that important correction.
___
Lee
More information about the User
mailing list