Code example for InvocationTargetException

Methods: getTargetException

0
			try { 
				return m.equals(getView) && (Integer) (args[0]) < 0 ? getView(
						(Integer) args[0], (View) args[1], (ViewGroup) args[2])
						: m.invoke(obj, args);
			} catch (InvocationTargetException e) {
				throw e.getTargetException();
			} catch (Exception e) {
				throw new RuntimeException(e);
			} 
		} 
 
		protected View getView(int position, View convertView, ViewGroup parent)
				throws IllegalAccessException { 
			if (position < 0) {
				final TextView v = (TextView) ((LayoutInflater) getContext()
						.getSystemService(Context.LAYOUT_INFLATER_SERVICE))
						.inflate(android.R.layout.simple_spinner_item, parent,
								false); 
				v.setText(getPrompt());
				return v;
Stop searching for code, let great code find you!  Add Codota to your java IDE