Roadmap › 1. .NET › Step 22
Err
Exception Handling & Custom Error Handling in .NET — Every Way, Every App Type
Exceptions from first principles to production — try/catch/finally, filters, rethrowing, custom exception hierarchies, exceptions vs Result pattern, async and parallel exceptions, global handlers (AppDomain, TaskScheduler, Application_Error), every way to handle errors in Web Forms, MVC 5, Web API 2, ASP.NET Core MVC and Web API (middleware, exception filters, IExceptionHandler, ProblemDetails, UseStatusCodePages), Blazor error boundaries, background services, SQL and HTTP error handling, retries with Polly, custom error pages, error codes and correlation ids.
Interview priority:★ Must know High priority — asked in almost every interview, learn firstMedium asked regularlyLow good to know
Module 1: Exceptions in C#
- 1.try, catch, finally, filters and rethrowing correctlyBasic ★ Must know
- 2.Custom exceptions and exception hierarchiesBasic ★ Must know
- 3.Exceptions vs the Result patternIntermediate ★ Must know
- 4.Exceptions in async, parallel and background codeIntermediate ★ Must know
Module 2: Error Handling by Application Type
- 5.ASP.NET Web Forms and MVC 5 (.NET Framework)Intermediate ★ Must know
- 6.ASP.NET Core — every way to handle exceptionsIntermediate ★ Must know
- 7.Blazor, MAUI/WPF/WinForms and console appsIntermediate Medium
Module 3: Infrastructure Errors and Resilience
- 8.Handling SQL, HTTP and transient errors (retries with Polly)Intermediate ★ Must know
- 9.Custom error pages, error codes and user-friendly messagesIntermediate ★ Must know
Next course in the roadmap: 23. Logging & Custom Logging in .NET — ILogger, Serilog, NLog, log4net and Your Own Logger →