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 ?
- [HandleError(ExceptionType=typeof(ArithmeticException),View="Arthimetic")]
- [HandleError(ExceptionType = typeof(NotImplementedException),View ="Error1")]
- public ActionResult SomeError() {
- try {}
- catch(Exception ex) {
- return View("Error");}
- }
Thanks in advance
Sachin SinghPosted Apr 21, 2021, 3:00 PM
Jignesh KumarPosted Apr 21, 2021, 12:49 PM
Hiesh KidechaPosted Apr 21, 2021, 5:27 AM