title: Return to while loop condition if error occurs inside methods contained within the statements
body: <p>In the below lines of code ,I am calling validatePersonDTO method inside a while loop.I need to return back to while loop to process next record if any error occurs within validatePersonDTO's methods for the current record.</p>
  
  <blockquote>
    <p>Note:</p>
  </blockquote>
  
  <p>ValidatepersonDTo method is in another class from where the while loop exists.</p>
  
  <p>This is a very basic question , i have tried out some options , but neither continue or return wouldn't work.</p>
  
  <p>So kindly let me know of your suggestions.</p>
  
  <pre><code>while ((nextLine = reader.readNext()) != null) {
  hrUploadValidator.validatePersonDTO(personDTO);
  }
  
  public void validatePersonDTO(PersonDTO personDTO) {
      try {           
          validateCdsId(personDTO, logDTO,regionIdList);          
          validateEmpFirstName(personDTO, logDTO);            
          validateEmpLastName(personDTO, logDTO);         
          validateEffectiveIn(personDTO, logDTO);
  }
  </code></pre>