By default, the first validation failure will throw a PropertyRuleViolation exception. This is useful for scenarios
where you want immediate feedback and error handling. PropertyRuleViolation indicates that a specific property has
violated a validation rule.
To collect all validation violations instead of stopping at the first one, pass an Options instance to
the validate()
method, setting the throw option to false.