Exception Handling in .net web apps

后端 未结 6 791
盖世英雄少女心
盖世英雄少女心 2021-01-31 12:36

I admit it: I don\'t bother with too much exception handling. I know I should do more but I can never wrap my head around where to start and where to stop. I\'m not being lazy.

6条回答
  •  没有蜡笔的小新
    2021-01-31 13:27

    Microsoft's Patterns & Practices team did a good job incorporating best practices of exception management into Enterprise Library Exception Handling Application Block

    Event if wouldn't use Enterprise Library, I highly recommend you to read their documentation. P&P team describes common scenarios and best practices for exceptions handling.

    To get you started I recommend read following articles:

    • Exception Handling on MSDN
    • Exception Management in .NET on MSDN
    • Exception Handling Best Practices in .NET on CodeProject

    ASP.NET specific articles:

    • User Friendly ASP.NET Exception Handling
    • Global Exception Handling with ASP.NET
    • Exception handling in C# and ASP .Net

提交回复
热议问题