Function to be called and returned by validation functions to indicate invalidity.
messages indicating why the value was not valid
if (value <= 0) { return validationFailure("value must be greater than 0", ...previousErrors);} Copy
if (value <= 0) { return validationFailure("value must be greater than 0", ...previousErrors);}
Function to be called and returned by validation functions to indicate invalidity.