Raise the specified exception of the provided expression evaluates to false.
Behavior is similar to assert() but throws an exception on failure.
enforce!(OutOfRange, myvar)(myvar > 0, "myvar must be greater than 0");
See Implementation
Raise the specified exception of the provided expression evaluates to false.
Behavior is similar to assert() but throws an exception on failure.