In ASP.NET MVC, why wouldn't I tack on HandleError on a base controller and be done with it?
Posted
by Jiho Han
on Stack Overflow
See other posts from Stack Overflow
or by Jiho Han
Published on 2010-05-19T18:34:37Z
Indexed on
2010/05/19
20:20 UTC
Read the original article
Hit count: 468
asp.net-mvc
|handleerror
Since HandleError is inherited by the derived Controllers, why wouldn't I just create (or have) a base controller, and apply HandleError on it so that any controllers that inherits from the base controller will automatically be handled as well?
And then I would tack on overriding HandleError on controllers and individual actions.
Can anyone think of any reason why I wouldn't want to apply HandleError to the base controller?
© Stack Overflow or respective owner