Code example for InvocationTargetException

Methods: getMessage

0
		catch (final InvocationTargetException e) {
			// TODO: Create exception class that will be handled in a different 
			// manner in the AdminAPIController 
			throw new RuntimeException(
					"Invocation error: Failed to execute getter function " 
							+ method.getName() + ". Reason: " + e.getMessage(),
					e);
		} catch (final Exception e) {
			throw new RuntimeException("Failed to execute getter function "
					+ method.getName() + ". Reason: " + e.getMessage(), e);
		} 
		return retval == null ? NULL_OBJECT_DENOTER : retval;
	} 
 
	public static void setHostAddress(final String hostAddress) {
		OutputUtils.hostAddress = hostAddress;
	} 
 
	public static String getHostAddress() {
		return hostAddress;
Contextual code suggestions in your IDE  Get Codota for Java