Monday, October 24, 2011

Re: Exceptions, best practice

The exception handler is a last resource mechanism. You should always use a try catch unless you think than presenting an error page to the user is the best thing to do. otherwise, if you can handle the exception and recover from it, you should do so.

There are very clever ways of using the exception handler to recover from exceptions,although I would suggest using try catch when possible.

--
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

No comments: