It's just a little thing that makes a big impact in handling errors in our small MVC project.
1. We make sure that <customErrors Mode = "On" /> in web.config.
2. We create a page to handle the error (ex. ErrorPage.aspx) in Shared Folder.
3. Of course, we create a class that inherits from Exception for our customized error handler.
Simple solution. Big impact!
No comments:
Post a Comment