Code example for InvocationTargetException

Methods: getTargetException

0
			} 
			throw ex;
		} 
		catch (InvocationTargetException ex) {
			if (logger.isDebugEnabled()) { 
				logger.debug("Target method failed for " + invocation, ex.getTargetException());
			} 
			throw ex;
		} 
	} 
 
	/** 
	 * Apply the given remote invocation to the given target object, wrapping 
	 * the invocation result in a serializable RemoteInvocationResult object. 
	 * The default implementation creates a plain RemoteInvocationResult. 
	 * <p>Can be overridden in subclasses for custom invocation behavior, 
	 * for example to return additional context information. Note that this 
	 * is not covered by the RemoteInvocationExecutor strategy! 
	 * @param invocation the remote invocation 
	 * @param targetObject the target object to apply the invocation to 
Experience pair programming with AI  Get Codota for Java