I see there is a nice [HandeError] attribute which could be applied on controller class or method.
What is my options if I would like to catch and handle exceptions which ocurred during rendering?
I see there is a nice [HandeError] attribute which could be applied on controller
Share
i prefer to use the Global.asax:
Edit re comment
ASP MVC is still ASP.NET, so yes this still works fine.
If some some reason you want to handle Rendering errors differently, you could override the default
WebFormsViewEngineand wrap atry catcharound the view generation methods, thats a bit overkill though.