Re: What do you think which mode will be standard for PEAR Error handling in PHP5?

From: Date: Wed, 03 Dec 2003 15:14:48 +0000
Subject: Re: What do you think which mode will be standard for PEAR Error handling in PHP5?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9273@lists.php.net to get a copy of this message
Hi Jackson Miller, you wrote: > The only downside I can think of is how to get the same functionality as: > if (PEAR::isError($class->method()) { > // do something > } But you wont need this any longer... try { $obj->doSth(); } catch ( Exception ) { // do something } ...so catch() replaces PEAR::isError() Regards, -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature]
« previous php.pear.general (#9273) next »