logo       

Re: How to catch exceptions, second try...: msg#00209

web.mason.user

Subject: Re: How to catch exceptions, second try...

> Ken> Perhaps you just need to set error_mode to 'fatal' ?
>
> That looks like it will probably do the trick, though if I understand
> correctly, my users will simply get an Internal Server Error response from
> Apache if I don't catch a problem. Right now they at least get a "whoops"
> page with a form they can use to easily let us know something failed. I
> guess there's no way to have my cake and eat it too, is there?

If you're using Apache try mixing the "ErrorDocument" directive into
things. I like to have (in my httpd.conf):

ErrorDocument 404 /error/404
ErrorDocument 500 /error/500

and I have a dhandler in the /error directory that takes care of my
presenting errors to users while still applying the look and feel of the
site.

n.


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise