public void validateAndThrowException ( String correlationId , Object value , boolean strict ) throws ValidationException { List < ValidationResult > results = validate ( value ) ; ValidationException . throwExceptionIfNeeded ( correlationId , results , strict ) ; }
Validates the given value and returns a ValidationException if errors were found .