title: can i let the constructor return which value has not been initialized due to validation reasons?
body: <p>I have a constructor receives 3 parameters String name, int id, int height. </p>
  
  <p>I am using the setters to check the validation : for example the height should be between 100cm to 250cm, thus I avoid the redundant instead of checking inside the constructor, but i need to use a while loop in the driver class to keep asking for the height again and again till the user enter a valid data .. </p>
  
  <p>the problem is: 
  How can I specify that the problem was in the height not in the name .. </p>
  
  <pre><code>setHeight(int height){
      if(height&gt;=100 &amp;&amp; height&lt;=250){
           this.height=height;
       }
    }
  </code></pre>
  
  <p>the constructor will call this method to set the height and check the validation, but if it is not valid I need the constructor to return something to the user to specify that the app accepted the name but there is a problem in the height . </p>
  
  <p>should I use a static boolean variable for each parameter to see which is not valid or there exist an easier way for it ?</p>