Fail Fast Or Get Defensive? - Handling Exceptions in C#
May 13, 2024
• 718 views
try catch finallytry catch finally blockcontrol flow of try catch finally blockexception handlingtry catch c#c sharp try catchtry catch c sharpc# try catchexception c#c# exception handlingc# try catch finallyc# exceptiondotnetc# exceptionstry catch finally c#try catch in c#C#error handling in c#try catchexceptions and exception handling in c#.netexception handling c#codingerror handling.net online training.netdotnet core
When it comes to programming, exceptions are inevitable. We're going to have to deal with error cases... But how we approach our error handling is up to us!
Two very common approaches on opposite ends of the spectrum are getting very defensive with try catch blocks or failing fast. In this video, I'll elaborate on when and why you might want EITHER of these options, along with some other thoughts for your exception handling in C#.
