Code example for InvocationTargetException

0
			pds.addStrategy(strategy);
			pds.assignProfiles(strategy, profiles);
			try { 
				pds.saveToMetaFile();
			} catch (Exception e) {
				throw new InvocationTargetException(e, "Could not save deploy file");
			} 
		} 
		 
		try { 
			strategy.deploy(project, Arrays.asList(MoSyncTool.getDefault().getProfiles(profiles)), monitor);
		} catch (OperationCanceledException e) { 
		    // Ignore. 
		} catch (Exception e) {
			throw new InvocationTargetException(e, e.getMessage());
		} 
	} 
 
}