Session

Beyond the Basics: Advanced Exception Handling Techniques in C#/.NET

Exception handling is a fundamental concept in C#/.NET for managing unexpected errors. While basic try-catch blocks are essential, robust applications require a more sophisticated approach. This talk dives deeper into advanced exception handling techniques that empower you to write cleaner, more maintainable, and informative code.

We'll explore concepts like:
- Exception Hierarchy and Specificity: Mastering the hierarchy of exception classes and using specific exceptions for better error identification. This will help you differentiate between programmer errors ("boneheaded" exceptions), logical errors ("vexing" exceptions), and external factors ("exogenous" exceptions).
- Rethrowing and Catching Exceptions: Understanding the nuances of rethrowing exceptions and selective catching for improved control flow.
- Custom Exceptions: Crafting custom exceptions to convey clear and context-specific error messages.
- Logging and Exception Handling: Integrating logging mechanisms with exception handling for detailed error tracking and debugging.
- Async/Await and Exceptions: Handling exceptions effectively in asynchronous programming with async/await patterns.

Target audience: intermediate C# developers who want to elevate their exception handling practices and write more resilient applications.

Preferred session duration: one slot, 45-60 minutes

Lukas Durovsky

Staff Software Engineer @ Thermo Fisher Scientific

Bratislava, Slovakia

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top