my actual example scenario is:
I have a Controller with a Action named Create(TClass obj).
When an error occurs, I wish fire an specialized exception (MyException), but I don't wanna to redirect to another page (General Page Error Handler, or others). I want to stay in the same page and show the message error in a jQueryUI Dialog popup.
I've tried these options:
- Override the method OnException (in Controller)
- Tested PostSharp (specializing OnExceptAspect)
- Tested the solution in this link and others like.
Have you any idea?
Thanks.