Re: Exceptions disappear when thrown in callback
| From: | Andrei Zmievski | Date: | Fri, 17 Mar 2006 04:13:13 +0000 |
| Subject: | Re: Exceptions disappear when thrown in callback | ||
| References: | 1 2 3 4 5 6 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2637@lists.php.net to get a copy of this message | ||
Okay, unless someone has a better idea, I'm going to go with Christian's suggestion here. Votes?
-Andrei
On Mar 16, 2006, at 2:39 PM, Andrei Zmievski wrote:
Yes, we could do that too. Unless there are nested main loops happening.. -Andrei On Mar 16, 2006, at 11:18 AM, Christian Weiske wrote:Andrei,--PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpCorrect, you can only catch exceptions if you place catch() { .. } around Gtk::main(). Alternatively, I could possibly allow you to use set_exception_handler() to provide custom handler..As far as I understood: All we need is to quit the main loop when an exception occurs in a handler. Then PHP can continue with the right things. --Regards/MfG, Christian Weiske