throw_if library

Functions

throwIf(bool test, Error errorFactoryFunc()) → void
Throws an Error if predicate test is satisfied [...]
throwIfNot(bool test, Error errorFactoryFunc()) → void
Throws an Error if predicate test is not satisfied [...]