amantinband/throw

A simple, fluent, extensible, and fully customizable library for throwing exceptions for projects using .NET 6+

C#validationguardcontractexceptionassertassertionargumentfluentclause
This is stars and forks stats for /amantinband/throw repository. As of 29 Apr, 2024 this repository has 1055 stars and 65 forks.

A simple, fluent, extensible, and fully customizable library for throwing exceptions using .NET 6+ dotnet add package throw Give it a star ⭐! Nullable vs non-nullable types Customize everything How customizing the exception affects the chained rules Exception customizations 1. Throw() 2. Throw("My custom message") 3. Throw(() => new MyException()) 4. Throw(paramName => new MyException($"Param: {paramName}") Usage Common types Booleans Nullable value types (bool?, int?, double?, DateTime? etc.) Strings Collections...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
Cratesmith/Cratesmith.AssetUIC#2270200
dbrizov/NaughtyAttributesC#4k+4426+1
Raicuparta/two-forks-vrC#ShaderLabHLSL98+130
thangchung/clean-code-dotnetC#6.4k+251k+4
red-prig/fpPS4PascalC++C#1.4k+286+1
mxgmn/MarkovJuniorC#6.3k02810
louthy/language-extC#5.8k04010
sacfiscal/FiscalNetC#860300
MoralisWeb3/unity-web3-game-kitC#JavaScriptShell49502160
Xabaril/AspNetCore.Diagnostics.HealthChecksC#TypeScriptCSS3.7k+9722-1