Code example for InvalidParameterException

			throw new Error(asJsonObject.get("error").getAsJsonObject()
		} else { 
			throw new InvalidParameterException(
					"there is no error for platform: " + platform);
	public void getApp(String name, int id, String platform, String path) throws NamingException, ClientProtocolException, IOException {
    		throw new NamingException("unsupported platfom :" + platform);
    	HttpGet httpget = new HttpGet(""+ id + "/"+ platform);
		 HttpResponse response = httpclient.execute(httpget);
		 if(response == null){
Connect your IDE to all the code out there  Get Codota for Java