Re: PEAR_Error compatiblity to PEAR_ErrorStack
| From: | Jorrit Schippers - nCode | Date: | Tue, 11 Dec 2007 21:09:15 +0000 |
| Subject: | Re: PEAR_Error compatiblity to PEAR_ErrorStack | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-48757@lists.php.net to get a copy of this message | ||
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.
Jorrit