Re: PEAR_Error, ErrorStack, Exception, and compatibility
| From: | Justin Patrin | Date: | Wed, 23 Jun 2004 07:43:00 +0000 |
| Subject: | Re: PEAR_Error, ErrorStack, Exception, and compatibility | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31135@lists.php.net to get a copy of this message | ||
Daniel Convissor wrote:
On Tue, Jun 22, 2004 at 11:31:23PM -0400, Hans Lellelid wrote:Yes, exactly. The "Exception Group" simply says that Exceptions should be used, period, and the only reason they give is that "it's what's build into PHP5". trigger_error() and return are built into PHP5 as well ....Anytime a function returns a PEAR_Error it should be throwing an Exception in PHP5.That seems to be abusing exceptpions.
Plus I say "BAH!" to having to nest everything inside try/catch.-- paperCrane <Justin Patrin>