Code example for Method

Methods: invoke

0
	   } 
	    
	   private static void setDatabaseEnabled(boolean e) throws IOException {
		   try 
		   { 
			   mWebSettings_setDatabaseEnabled.invoke(e);
		   } 
		   catch (InvocationTargetException ite) {
	           /* unpack original exception when possible */ 
	           Throwable cause = ite.getCause();
	           if (cause instanceof IOException) {
	               throw (IOException) cause;
	           } else if (cause instanceof RuntimeException) {
	               throw (RuntimeException) cause;
	           } else if (cause instanceof Error) {
	               throw (Error) cause;
	           } else { 
	               /* unexpected checked exception; wrap and re-throw */ 
	               throw new RuntimeException(ite);
	           } 
Experience pair programming with AI  Get Codota for Java