2010年6月15日星期二

[fw-mvc] Re: Exceptions handling in front controller plugins

I'm also trying to elegantly handle exceptions thrown in front controller
plugins. Looking at Zend_Controller_Plugin_Broker, I've noticed that the
Exception is just added to the response object. This causes the dispatch
process to continue processing the action. What is the best way to throw an
Exception in a front controller plugin that basically tells the dispatch
process to exit gracefully showing the exception (if the front controller is
set to display exceptions)?

-Nick
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Exceptions-handling-in-front-controller-plugins-tp1558800p2256423.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: