Quantcast

Error Page Handling

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Error Page Handling

Freddie Witherden-2
Hi

I am not sure how to best go about generating error pages for my  
users is (such as when they attempt to do something they are not  
supposed to or when something breaks). I was thinking about having an  
Error controller with various actions (permissions, 404, &c) and then  
using the _forward method when an error occurs passing an error  
message as a parameter, but what do you use/think of that idea?

Regards, Freddie.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Error Page Handling

stephane.bisinger
On 08/04/07, Freddie Witherden <[hidden email]> wrote:
> I am not sure how to best go about generating error pages for my
> users is (such as when they attempt to do something they are not
> supposed to or when something breaks). I was thinking about having an
> Error controller with various actions (permissions, 404, &c) and then
> using the _forward method when an error occurs passing an error
> message as a parameter, but what do you use/think of that idea?

I would go the Object Oriented way: throw exceptions and catch them at
a higher level, so you can choose what to display according to the
exception thrown.

--
Stéphane
Loading...