Re: trapping exception?

From: Date: Wed, 09 May 2001 18:34:58 +0000
Subject: Re: trapping exception?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-126@lists.php.net to get a copy of this message
[Steven Haryanto <steven@haryan.to>] > Is there a trick to trap PEAR_Error raised by outer function calls? > I have method a() which calls method b(). If method b() calls > raiseError, and I have set global errorHandling to PRINT, can I > suppress the error message caused by b() and just print the later > error raised by a() itself? No you can't. It would be very nice though, I'm trying to think how this could be possible in PHP. The only thing that comes to mind is extending Zend's "declare" keyword. - Stig -- Stig Sæther Bakken <ssb@fast.no> Fast Search & Transfer ASA, Trondheim, Norway

« previous php.pear.general (#126) next »