Re: Delayed exception

From: Date: Mon, 25 Feb 2008 09:24:36 +0000
Subject: Re: Delayed exception
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-5143@lists.php.net to get a copy of this message
Piotr Pokora pisze: > Maybe I should try similiar code with php-gtk2 which uses the same > signals' emission feature? I tested it with gtkwindow.php available in demos: Add simple test_cb class. class test_cb { function test_cba() { throw new Exception("DADA"); } } Connect to destroy signal in constructor: $this->connect_simple('destroy', array('test_cb', 'test_cba')); And try/catch : try{ new WindowTest(); } catch(Exception $e) { echo $e->getMessage(); } Output is: Fatal error: Uncaught exception 'Exception' with message 'DADA' I throw Exception and catch Exception. Why this error? Piotras

« previous php.pecl.dev (#5143) next »