Code example for InvocationTargetException

Methods: getClass, getMessage

0
		} catch (IllegalAccessException e) {
			Log.e(this.getClass().getName(), e.getClass().getName() + ": " + e.getMessage());
		} catch (NoSuchMethodException e) {
			Log.e(this.getClass().getName(), e.getClass().getName() + ": " + e.getMessage());
		} catch (InvocationTargetException e) {
			Log.e(this.getClass().getName(), e.getClass().getName() + ": " + e.getMessage());
		} 
		return null; 
	} 
 
	/** 
	 * Reflection through fields of this instance to fill in TextViews.<br/> 
	 * We are searching for a view with android:tag = "&lt;simple name of this class&gt;.&lt;field name&gt;".<br/> 
	 * For now, there is 2 possibles views : ImageView and TextView 
	 * @param view Android view source (gives us the context and the base view containing subviews for display) 
	 */ 
	public void fieldsToView(View view) {
		if (view == null) return;
		Class<?> c=this.getClass();
		Field[] fields=c.getFields();
		View v = null;