margam chakri

margam chakri

  • 1.9k
  • 126
  • 994

Execution order

Apr 20 2021 1:11 PM
Hi,
 
Below code action method has 2 error methods one attribute and try catch inside
 
while running application which one is first execute try or handleError ?
  1. [HandleError(ExceptionType=typeof(ArithmeticException),View="Arthimetic")]  
  2. [HandleError(ExceptionType = typeof(NotImplementedException),View ="Error1")]  
  3. public ActionResult SomeError() {  
  4. try {}  
  5. catch(Exception ex) {  
  6. return View("Error");}  
  7. }  
Thanks in advance

Answers (3)