Re: PEAR_Error compatiblity to PEAR_ErrorStack
| From: | Gregory Beaver | Date: | Tue, 11 Dec 2007 22:09:22 +0000 |
| Subject: | Re: PEAR_Error compatiblity to PEAR_ErrorStack | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-48758@lists.php.net to get a copy of this message | ||
Jorrit Schippers - nCode wrote:
> On Tue, 11 Dec 2007 10:26:07 +0100, cweiske@cweiske.de (Christian
> Weiske) wrote:
>
>> Is there anything to say against adding the method to PEAR_Error?
>> It could redirect to getMessage().
>
> As far as I can see there is a toString() method, so perhaps it could
> be a redirect to that method then. toString() does a little more than
> just redirecting to getMessage(), it also prints the classname, error
> code etcetera.
Hi,
I prefer to redirect to getMessage(), as many packages put non-strings
in userinfo, which would not work with the toString() method. I've
committed this change.
Thanks,
Greg