Reply to Re: How to show complete exception text?

Your name:

Reply:


Posted by "Christopher J. Bottaro" on 10/20/06 11:24

Kevin Waterson wrote:

> This one time, at band camp, "Christopher J. Bottaro"
> <cjbottaro@alumni.cs.utexas.edu> wrote:
>
>> Hi,
>>
>> When an exception propagates all the way up the stack frame and splatters
>> itself on my webpage, most of the text is cut off! This is completely
>> useless. I can see that there is an error, but I can't read the frickin
>> error message. How do I configure PHP to show the entire exception
>> message?
>
> not sure of your code, are you trying to do something like..
> <?php
>
> try {
> lots of good code;
> }
>
> catch(Exception $e){
> echo 'oh my, and exception has been thrown'.$e->getMessage();
> }
> ?>

No. The exception is not being caught and is propagating all the way up.
Then it is displayed on the webpage along with the call stack. The problem
is that a lot of the text is cut short so it will fit on the webpage
without word wrapping.

> Kevin

-- C

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация