Added IllegalArgumentException in the Build method of the Builder class.