BootBlock / Hiroix-Framework

A C# application development framework.
http://hiroix.com
0 stars 0 forks source link

Convert all applicable exception throws to use ThrowIf #7

Closed BootBlock closed 1 year ago

BootBlock commented 3 years ago

All existing throw new exceptions should use the ThrowIf namespace for parameter validation within the entry points of methods. Note that this is more geared towards parameter/object checking for the developer and should not be used for general exceptions that are shown to the user (due to stack modification that may make stack traces less useful).

See here for more information; although in our implementation, we're also doing an additional check to reduce code further and make the methods more helpful.