What is the purpose of UseDeveloperExceptionPage()?

 Posted by Rajnilari2015 on 8/9/2016 | Category: ASP.NET Core Interview questions | Views: 405 | Points: 40
Answer:

This method belongs to the Microsoft.AspNetCore.Builder namespace of DeveloperExceptionPageExtensions static class. The purpose of this function is to capture synchronous and asynchronous System.Exception instances from the pipeline and generates HTML error responses. It returns a reference to the app after the operation is completed.We use the UseDeveloperException() extension method to render the exception during the development mode.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response