17 packages tagged with “Throw”
A library to check your arguments in a simple comfort way. This library do not use Expression or nameof. It is based on Func<T>. So no performance issue during positive argument check.
Pitcher is helper library to simplify throwing exceptions and make methods easier to inline by reducing code size.
LinksPlatform's Platform.Exceptions Class Library
Pitcher.Sources is helper library to simplify throwing exceptions and make methods easier to inline by reducing code size. It's a source package for Pitcher, directly adding the code to your library or application without introducing another dependency.
Throw helpers and guard methods
Provides a simple, fluent, extensible exception-throwing API, with functionality provided by extension methods on interface implementations.
Provides performant guard functionality for methods to throw exceptions
Exception helpers, including ReThrow (with the stack trace preserved), AggregateException unwrapping, and dumping to xml.
Simple Guard Clause Helper
A small helper library for .NET to throw if an argument does not meet specified criteria. Similar to contract programming or "Guard" classes but a bit more informative as to what it will do.
Extensions to the ArgumentException.ThrowIf methods to cover more scenarios and additional exception types. .Net provides a basic set of ThrowIf extension methods, and this library adds to that list.
Provides a set of Exception oriented extension methods methods extending from Xunit.
Unified conditional validator designed for .NET built-in structures and types
Package Description
This library provides a number of extension methods that allow standard checks such as null check, empty check, range check an so on, do be done in one single line of code. Note, the latest version includes **breaking changes**.
FlowControl (Milad.Utils.FlowControl) is a .NET Standard library to help controlling business rule failures in multi-layered applications when the developer wants to avoid throwing exceptions to control the flow.
Analyzer that deny "throw" keyword in C#