Re: Exceptions disappear when thrown in callback
| From: | Andrei Zmievski | Date: | Thu, 16 Mar 2006 22:39:04 +0000 |
| Subject: | Re: Exceptions disappear when thrown in callback | ||
| References: | 1 2 3 4 5 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2636@lists.php.net to get a copy of this message | ||
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,Correct, 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