List of usage examples for javax.xml.ws WebServiceException getLocalizedMessage
public String getLocalizedMessage()
From source file:com.amalto.workbench.dialogs.AddBrowseItemsWizard.java
private boolean saveConfiguration() { Iterator<String> browseIterator = browseItemToRoles.keySet().iterator(); while (browseIterator.hasNext()) { String browse = browseIterator.next(); List<Line> roles = browseItemToRoles.get(browse); try {//w ww. jav a 2 s. c o m newBrowseItemView(browse); modifyRolesWithAttachedBrowseItem(browse, roles); } catch (WebServiceException e) { if (!Util.handleConnectionException(page, e, null)) { MessageDialog.openError(page.getSite().getShell(), Messages._Error, Messages.bind(Messages.ErrorOccuredSaveView, e.getLocalizedMessage())); } return false; } } return true; }
From source file:com.amalto.workbench.editors.DataClusterDialog.java
private void showInTextWidget(LineItem lineItem) { if (lineItem == null) { textViewer.setText(""); //$NON-NLS-1$ recordContent = ""; //$NON-NLS-1$ return;//from www . j a v a 2 s.c om } try { final TMDMService service = Util.getMDMService(model); final WSItem wsItem = service.getItem(new WSGetItem(new WSItemPK(lineItem.getConcept().trim(), Arrays.asList(lineItem.getIds()), (WSDataClusterPK) model.getWsKey()))); recordContent = Util.formatXsdSource(wsItem.getContent()); textViewer.setText(recordContent); } catch (WebServiceException e) { log.error(e.getMessage(), e); } catch (XtentisException e) { log.error(e.getMessage(), e); MessageDialog.openError(getShell(), Messages._Error, Messages.bind(Messages.DataClusterBrowserMainPage_36, e.getLocalizedMessage())); } }