2008年9月17日星期三

[fw-mvc] best practice for errors occurring in plugins

I've read a few posts from the archive regarding the way to handle exceptions
occurring in a plugin. In one of them, Matthew W. answers:


> What the statement "It is not intended to catch exceptions raised in
> other plugins or routing" means is that the ErrorHandler plugin can only
> catch exceptions raised within your action controllers, not exceptions
> raised in plugins or other areas of responsibility during the dispatch
> cycle. You can always do your own try/catch blocks and forward as noted
> above.
>

Is it intentional to not catch in ErrorController the exceptions raised in
plugins or is there a hidden technical problem?

And, as the way to handle errors is different depending on the place they
occur, what is the best practice for application errors? To use in every
case a forward to a specific action in the error controller?

-----
Guillaume ORIOL
Sofware architect
Technema
--
View this message in context: http://www.nabble.com/best-practice-for-errors-occurring-in-plugins-tp19526541p19526541.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: