Re: Re: PEAR_Exception - some refactoring
| From: | Bertrand Mansion | Date: | Sat, 28 Aug 2004 21:50:02 +0000 |
| Subject: | Re: Re: PEAR_Exception - some refactoring | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33020@lists.php.net to get a copy of this message | ||
Davey wrote:
>I personally would prefer if for web you output <pre>$same_as_CLI</pre>
>rather than a table, this will help when using CGI from command line
>(for testing, this is what ZDE uses), so that all the HTML isn't in the
>way. Also means lighter output on the web :)
As I said to Greg, I will add a method that will allow you to get the output format you prefer. At
the moment, I don't see a need to add support for renderers to PEAR_Exception as user is
already able to get the full trace by calling getTrace().
I think I will change method getTraceAsHtml() in toHtml()
and add a new toText() method.
__toString() will call either depending on the context.
Bertrand Mansion
Mamasam