PrepAway - Latest Free Exam Questions & Answers

Which approach should you recommend?

You are designing an ASP.NET MVC 2 application. You need to centralize the logic for
handling and logging unhandled exceptions. Which approach should you recommend?

PrepAway - Latest Free Exam Questions & Answers

A.
Decorate all controllers with the default Handle Error attribute,

B.
Decorate all controllers with a custom Handle Error attribute

C.
Use try and catch on every method.

D.
Override the One Exception method of each controller.


Leave a Reply