Code example for InvocationTargetException

Methods: getMessage

0
		}; 
		 
		try { 
			getContainer().run(false, true, op);
		} catch (InvocationTargetException e) {
			String message = e.getMessage();
			if (message == null || message.length() == 0) {
				message = "An error occurred during import. Please see the workspace logs for details.";
			} 
			MessageDialog.openError(getShell(), "Error importing project", message);
			return false; 
		} catch (InterruptedException e) {
			Logger.logException(e);
			return true; 
		} 
		 
		return true; 
	} 
	 
	protected void applyNatures(String[] natures, IProject project, IProgressMonitor monitor) throws CoreException {