Guard Clauses and Exceptions or Validation?

added by DotNetKicks
1/18/2022 4:19:26 AM

484 Views

Guard Clauses provide an elegant way to ensure code inputs are valid, typically by throwing exceptions. Validation provides a solution to a similar problem, typically without the use of exceptions. When does it make sense to use each of these techniques?


0 comments