Re: Re: PEAR's Error Handling and PHP5

From: Date: Tue, 20 Jun 2006 18:04:22 +0000
Subject: Re: Re: PEAR's Error Handling and PHP5
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-43047@lists.php.net to get a copy of this message
Lukas, I actually liked a proposal that someone else had implemented where they used a callback function in PEAR_Error to throw exceptions. The catch is trying to get everything to work on both PHP4 (PEAR_Error) and PHP5 (PEAR_Exception). I'd also like to see integration in PEAR_Exception with PEAR_Error. For instance, I'd like to be able to throw PEAR_Error's as PEAR_Exception's without having to call all sorts of functions. In other words, PEAR_Exception should be aware of PEAR_Error and "import" as much information from the PEAR_Error as possible. --Joe On Jun 20, 2006, at 10:57 AM, Lukas Smith wrote:
Lukas Smith wrote:
Hi, just for a fresh perspective I implemented 2 proxy classes that will re-throw as an exception or pear_error: http://pooteeweet.org/blog/430
hmm i must say i am a bit disappointed with the lack of feedback. i guess this means people do not think this is a viable approach? regards, Lukas --PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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