Suppose we have a Yii framework app (MVC) and we need to properly place simple try and catch blocks to handle exceptions. What is your opinion about placing exception handling blocks in Controllers, Models, …
Suppose we have a Yii framework app (MVC) and we need to properly place simple try and catch blocks to handle exceptions. What is your opinion about placing exception handling blocks in Controllers, Models, …
It’s fine to use try-catch to handle exceptional situations. It’s wrong if we’re talking about normal application flow though.