validatePositive

Validates that value is positive.

void
validatePositive
(
string option
V
)
(
,
lazy string msg = "must be greater than zero"
)

Parameters

value
Type: V

Value to be validated

Throws

darg_plus.exception.ValidationError if value is less than or equal to zero.

See Also

validate

Meta