validatePositive

Validates that value is positive.

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

Parameters

value V

Value to be validated

msg string

Error details in case of failure

Throws

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

See Also

validate

Meta