Monday, October 24, 2011

Exceptions, best practice

Hi everyone,

I am going to rewrite my app with cake 2.0 and want to make sure I
understand everything before I start. I just read the chapter on
Exceptions and want to clearify some things.

1) Even though I could use try / catch within my app, it is
recommended to use the build in Exception handler or renderer.

2) If I add my own Exceptions, I also need to use a custom Exception
handler as the default handler doesn't know what to do with my custom
Exceptions.

Can you please say if these statements are right or wrong and if
wrong, why.

Thank you
-flosky

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate