Code example for InvocationTargetException

Methods: getTargetException

0
		try { 
			rowsetMethod.invoke(rowset, arg);
			fail("InvalidResultSetAccessException should have been thrown"); 
		} 
		catch (InvocationTargetException ex) {
			assertEquals(InvalidResultSetAccessException.class, ex.getTargetException().getClass());
		} 
	} 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java