Code example for InvocationTargetException

Methods: getCause

0
			} 
 
			return method.invoke(_liferaySelenium, arguments);
		} 
		catch (InvocationTargetException ite) {
			Throwable throwable = ite.getCause();
 
			if (methodName.equals("assertJavascriptErrors") ||
				methodName.equals("assertLiferayErrors")) {
 
				_logger.logError(method, arguments, throwable, false);
 
				return null; 
			} 
 
			if (methodName.equals("stop") || methodName.equals("stopLogger")) {
				System.out.println("Unable to stop " + throwable.getMessage());
 
				return null; 
			}