Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3306 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24660 invoked from network); 8 Jul 2003 17:46:05 -0000 Received: from unknown (HELO secure.thebrainroom.com) (213.239.42.171) by pb1.pair.com with SMTP; 8 Jul 2003 17:46:05 -0000 Received: from zaneeb.brainnet.i (IDENT:root@brain.dial.nildram.co.uk [195.149.29.154]) by secure.thebrainroom.com (8.9.3/8.9.3) with ESMTP id SAA30618; Tue, 8 Jul 2003 18:46:01 +0100 Received: from TITAN (titan.brainnet.i [192.168.2.7]) by zaneeb.brainnet.i (8.11.6/8.11.6) with SMTP id h68Hjxs32585; Tue, 8 Jul 2003 18:45:59 +0100 Message-ID: <036b01c34578$c9a7df40$0702a8c0@TITAN> To: , "Greg Beaver" References: <3F0AFF96.9080600@chiaraquartet.net> Date: Tue, 8 Jul 2003 18:45:57 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Re: [PHP-DEV] exceptions question From: wez@thebrainroom.com ("Wez Furlong") > In experimenting with exceptions, I notice that throw() always jumps to > the first catch() (as expected), and there is no way to return to the > line after the throw(). That is precisely how exceptions are supposed to work. > Are we forced to use trigger_error() or some > custom function for this kind of exception, trigger_error() != exception. > or is there a way to tell > PHP 5 "go back, the exception is fixed"? Nope. You need to use separate try/catch blocks if you need more granularity. try { try { do_something(); } catch (exception $e) { // ignore it } do_something_else(); } catch (exception $e) { var_dump($e); } --Wez.