RE: [PEAR] PHP5 - Exceptions and the future of PEAR_Error
| From: | Joe Stump | Date: | Mon, 26 Apr 2004 16:56:18 +0000 |
| Subject: | RE: [PEAR] PHP5 - Exceptions and the future of PEAR_Error | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12130@lists.php.net to get a copy of this message | ||
Having been brought up in PHP exclusively, I'm rather naïve to the whole
idea of exceptions. Could someone explain how throwing exceptions would
rid me of if(!DB::isError($result))?
Again, sorry for being dumb ...
--Joe
> -----Original Message-----
> From: Thorsten Suckow-Homberg [mailto:ts@siteartwork.de]
> Sent: Monday, April 26, 2004 12:46 PM
> To: pear-general@lists.php.net
> Subject: [PEAR] PHP5 - Exceptions and the future of PEAR_Error
>
>
> Hey there,
>
> with the RC2 of PHP5 I started migrating my Application from
> PHP4 to PHP5.
>
> Coming to the point of using exceptions, I am curious of how
> PEAR will migrate the PEAR_error-Concept to it - the
> thousands of "if(PEAR::isError($yadayada)" will hopefully
> become useless now ;)
>
> Is there any discussion going on under the devs?
>
> Whats the best way to migrate my application regarding the
> catch-throw-clause?
>
> Should
>
> try{
>
> }
> catch(PEAR_Exception $exception){
>
> }
>
> work?
>
> Hints please ;)
>
> Kind regards
>
> Thorsten
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>