Validates all constraints on given object which is expected to be an instance of a Scala case class.
Validates all constraints on given object which is expected to be an instance of a Scala case class.
The case class to validate.
a sequence of ValidationResult which represent all found constraint violations.
ValidationResult.Invalid results returned from this method will not have the field name already included in the message. That translations happens in the ValidationException.
Validates all constraints on given object which is expected to be an instance of a Scala case class.
Validates all constraints on given object which is expected to be an instance of a Scala case class.
The case class to validate.
ValidationException
with all invalid validation results.
the ValidationException formats included ValidationResult.Invalid results to include the ValidationResult.Invalid.path as a ValidationResult.Invalid.message prefix for ease of error reporting from the exception as the results are used as the basis of the ValidationException.getMessage string.