Methods to handle exceptions in a web project using C#

前端 未结 5 948
被撕碎了的回忆
被撕碎了的回忆 2021-02-09 01:36

What is the best way to handle exceptions occurring in catch statements. Currently we are writing the exception message to response object\'s write method. But I want a solution

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-09 01:53

    I'd record the detailed error to my database and redirect the user to a generic error page.

提交回复
热议问题