Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 10, 2007 10:06 PM by CVertex
Dec 10, 2007 02:13 PM|LINK
I have just downloaded the CTP bits and started playing with MVC. I've noticed that exceptions occurring during the execution of an action are delegated to the OnError method which we can override in order to handle them. What is this method supposed to
return? Returning "true" propagates the exception otherwise the exception is handled which IMHO is misleading. Is this the expected behavior?
Dec 10, 2007 03:46 PM|LINK
Currently, the semantic is return true if you want the error to propagate. Not exacty very clear, I know. This will be changed in a future revision. Rather than returning bool, we'll probably go with some sort of args approach so you have more context to
make a decision within that method.
Dec 10, 2007 10:06 PM|LINK
I concur that the return type is not self explanatory.
The EventArgs solution is way better.