InfoQ Homepage Advanced Exception Handling in C# and .NET Applications

Advanced Exception Handling in C# and .NET Applications

Company: Backtrace

This article examines 6 key issues that developers often see while debugging their code, and offers suggestions for how to make the code easier to debug:

  • Missing stack trace when throwing exception from try/catch block
  • The difference between Environment.StackTrace and Exception stack trace
  • Getting exception type from exception object
  • Using Exception Filters to catch different types of exceptions
  • Handling aggregate exceptions
  • Getting line numbers in production code stack traces

Learn how to better handle errors and deliver any .NET application more efficiently and effectively to your customers.


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.