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

Hiesh KidechaRank #4,751 · 327 reputationPosted Apr 21, 2021, 1:27 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Apr 21, 2021, 11:00 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 21, 2021, 8:49 AM EDT