Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 13th, 2012  |  syntax: None  |  size: 0.50 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class SomeController : Controller
  2. {
  3.     public ActionResult SomeAction()
  4.     {
  5.         new SomeBusinessLogicComponentInTheMVCProject().DoSomething();
  6.         return View();
  7.     }
  8. }
  9.  
  10. public class SomeBusinessLogicComponentInTheMVCProject
  11. {
  12.     public void DoSomething()
  13.     {
  14.         try
  15.         {
  16.         }
  17.         catch (Exception ex)
  18.         {
  19.             // Will the HandleError filter's OnError
  20.             // handler catch this exception?
  21.         }
  22.         finally
  23.         {
  24.         }
  25.     }
  26. }