Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008, 09:17 AM
Junior Member
 
Join Date: May 2008
Posts: 1
Default ErrorException

Is someone using ErrorException to catch errors as exceptions? If so, how?
PHP: ErrorException - Manual

It's not working out for me since the framework has horrid stuff like
PHP Code:
if (!$fh = @fopen($filename'r'true)) {
return 
false;

in their library. Which is caught by the ErrorException.

My goal is to halt on all errors and exceptions in development phase.
And to show a friendly page in production fase on any raised error/exception.

I got to the point where i returned the response from the dispatcher as shown in the manual, but then u have a response with 1 or more errors, exceptions.
I want to halt my script on any error, exception. Dev or production phase..

Any suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:53 PM.