The maximum value
Error message.
Error message. Variables: #{value} the validated input, #{max} tha max value
Implement this method in subclasses to validate a value.
Implement this method in subclasses to validate a value.
The value to be validated
Either a boolean indicating if validation is successful or an Optional string with a validation error message. If a boolean (false) is returned an error message will be constructed using the formatMessage method.
Validates max values
The maximum value
Error message. Variables: #{value} the validated input, #{max} tha max value