private void isDogWithAllData(Dog dog) {
		
	  boolean hasError = false;

	  if(dog == null){
	   hasError = true;
	  }

	  if (dog.getName() == null || "".equals(dog.getName().trim())){
	   hasError = true;
	  }

	  if(dog.getWeight() <= 0){
	   hasError = true;
	  }

	  if (hasError){
	   throw new IllegalArgumentException("The dog is missing data. Check the name and weight, they should have value.");
	  }
	  
	 }