public static void throwExceptionIfNeeded ( String correlationId , List < ValidationResult > results , boolean strict ) throws ValidationException { ValidationException ex = fromResults ( correlationId , results , strict ) ; if ( ex != null ) throw ex ; }
Throws ValidationException based on errors in validation results . If validation results have no errors than no exception is thrown .