Re: Re: PEAR_Exception in CVS

From: Date: Mon, 21 Jun 2004 17:43:09 +0000
Subject: Re: Re: PEAR_Exception in CVS
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-31040@lists.php.net to get a copy of this message
On Mon, Jun 21, 2004 at 07:29:57AM -0400, Hans Lellelid wrote: > try { > $con->execute("DELETE FROM ....."); > } catch (SQLException $sqle) { > throw new PropelException("Object delete failed", $sqle); > } All of the planning discussions I've seen here and on internals@lists.php.net have indicated that exceptions should only be used for constructors that fail and fatal startup errors. Perhaps I'm mixing apples and organges. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.pear.dev (#31040) next »