Re: PEAR_Exception - some refactoring
| From: | Greg Beaver | Date: | Sat, 28 Aug 2004 18:02:17 +0000 |
| Subject: | Re: PEAR_Exception - some refactoring | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33004@lists.php.net to get a copy of this message | ||
Martin Jansen wrote:
On Sat Aug 28, 2004 at 06:2134PM +0200, Bertrand Mansion wrote:I think cause works well, as the exception object caused the new exception object to be created. Reason works fine too, but is more passive (if we're getting into English grammar :) Greg- method _getCauseMessage() -> _getCauseMessage(array $causes) changed to a recursive method that fills an array of causes with arrays containing all the needed info for a informative cause message. Does not return a string anymore, just the raw data.I'm wondering if the term "cause" is correct here. Isn't "reason" more appropriate? Native speaker, anyone?