asp.net - Is the MVC Controller Layer the ideal place for error handling? -


This appears to me, because almost all exception handlers are given the downstream of routing requests, A controller will be thrown in or downstream from some controller upstream to a controller, which is just what happened in the controller. P> controller actions are an ideal place for most error handling but not all of them.

The view is not provided until after performing your administrator task. So for example if you pass the view to a view modal that is more than a simple data container and gives an exception, while the scene is being presented (not an unusual scenario). You can not hold it in your controller action.

Here's a tool that you can use to get an exception outside the controller


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -