code_junkie

What Error Handling Options Do I Have In ASP.NET MVC?

Nov 12th, 2011
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. protected void Application_Error()
  2. {
  3. Exception lastException = Server.GetLastError();
  4. GetLogger().Fatal(lastException); // your custom loggin code
  5. }
  6.  
  7. [Rescue("default", AutoLocate = true)]
  8. public class MyController : ConventionController
Add Comment
Please, Sign In to add comment