Re: Some more PHP5-related ruminations: Exceptions
| From: | George Schlossnagle | Date: | Sat, 05 Apr 2003 14:56:05 +0000 |
| Subject: | Re: Some more PHP5-related ruminations: Exceptions | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14917@lists.php.net to get a copy of this message | ||
On Saturday, April 5, 2003, at 07:10 AM, Jesus M. Castagnetto wrote:
The execptions in PHP5 look nice, and should make some of the error handling simpler and more consistent. One thing that the Exception class does not have is the ability to chain them. Tried subclassing it but did not work too well (the filename and line were always wrong), so maybe something like the following could be used in PEAR:There is a base 'exception' class in PHP5, perhaps inhereting from that would be good.