Code example for InvocationTargetException

Methods: toString

0
		} catch (IllegalArgumentException e) {
			Log.d("myLogs", e.toString());
		} catch (IllegalAccessException e) {
			Log.d("myLogs", e.toString());
		} catch (InvocationTargetException e) {
			Log.d("myLogs", e.toString());
		} 
 
		Log.d("myLogs", "Ending method");
 
	} 
 
	private void reCall(Context ctx, String s) {
		try { 
			TimeUnit.SECONDS.sleep(2);
		} catch (InterruptedException e) {
			Log.d("myLogs",
					"Error in recall, TimeUnit.SECONS.sleep() " + e.toString());
		} 
		Intent intent = new Intent(Intent.ACTION_CALL);
		intent.setData(Uri.parse("tel:" + s));