Re: Exceptions disappear when thrown in callback

From: Date: Thu, 16 Mar 2006 06:04:17 +0000
Subject: Re: Exceptions disappear when thrown in callback
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2624@lists.php.net to get a copy of this message
I can make it work (show exception in the console), but before I do that.. what are you trying to achieve by throwing an exception in the callback? Where are you going to catch it? Or do you just want to terminate the program? -Andrei On Mar 15, 2006, at 8:16 AM, Christian Weiske wrote:
Hello all, There is a real big problem with Exceptions and callbacks: If an exception is thrown while you are in a callback (e.g. when a button has been clicked), the php code stops executing, but no exception is shown (dumped to the console). That is really annoying, because you never know when an exception has been thrown unless you catch it before the callback returns. I had several bang-head-against-desk situations because I absolutely didn't know *where* the exception occured, and the code just hang. IMO the callback handler in php-gtk should stop the main loop and dump the exception as it's done in php itself. --Regards/MfG, Christian Weiske


« previous php.gtk.dev (#2624) next »