private CDOViewProvider getViewProvider() { try { return (CDOViewProvider)element.createExecutableExtension("class"); //$NON-NLS-1$ } catch (CoreException ex) { throw WrappedException.wrap(ex); } } }
protected MessageDigest createDigest() { try { return MessageDigest.getInstance("SHA-1"); } catch (NoSuchAlgorithmException ex) { throw WrappedException.wrap(ex); } }
@Override public URI toURI() { try { return new URI(CDOWorkspaceFileSystem.SCHEME + "://" + name); } catch (URISyntaxException ex) { throw WrappedException.wrap(ex); } }
private CDOViewProvider getViewProvider() { try { return (CDOViewProvider)element.createExecutableExtension("class"); //$NON-NLS-1$ } catch (CoreException ex) { throw WrappedException.wrap(ex); } } }
public void acquireAtomicRequestLock(Object key) { try { lockManager.lock(LockType.WRITE, key, this, IRWLockManager.WAIT); } catch (InterruptedException ex) { throw WrappedException.wrap(ex); } }
public Writer handleClob(byte[] id, long size) { try { return startClob(out, id, size); } catch (Exception ex) { throw WrappedException.wrap(ex); } } });
public void handleCommitInfo(CDOCommitInfo commitInfo) { try { exportCommit(out, commitInfo); } catch (Exception ex) { throw WrappedException.wrap(ex); } } });
public static String getSessionDescription(IProject project) { try { return project.getPersistentProperty(SESSION_DESCRIPTION_KEY); } catch (Exception ex) { throw WrappedException.wrap(ex); } }
public OutputStream handleBlob(byte[] id, long size) { try { return startBlob(out, id, size); } catch (Exception ex) { throw WrappedException.wrap(ex); } }
public void handleBranch(CDOBranch branch) { try { exportBranch(out, branch); } catch (Exception ex) { throw WrappedException.wrap(ex); } } });
public void acquireAtomicRequestLock(Object key) { try { lockManager.lock(LockType.WRITE, key, this, IRWLockManager.WAIT); } catch (InterruptedException ex) { throw WrappedException.wrap(ex); } }
public static void setSessionDescription(IProject project, String value) { try { project.setPersistentProperty(SESSION_DESCRIPTION_KEY, value); } catch (Exception ex) { throw WrappedException.wrap(ex); } }
private CDOWorkspace openWorkspace() { try { return CDOFS.open(name, location); } catch (Exception ex) { throw WrappedException.wrap(ex); } }
public void lock() { try { object.cdoView().lockObjects(Collections.singletonList(object), type, WAIT); } catch (InterruptedException ex) { throw WrappedException.wrap(ex); } }
public void lock() { try { object.cdoView().lockObjects(Collections.singletonList(object), type, WAIT); } catch (InterruptedException ex) { throw WrappedException.wrap(ex); } }
private void handleException(int attempt, Exception exception) { try { exceptionHandler.handleException(getSession(), attempt, exception); } catch (Exception ex) { throw WrappedException.wrap(ex); } } }
public void handleBranch(CDOBranch branch) { try { out.writeByte(CDOProtocolConstants.REPLICATE_BRANCH); out.writeCDOBranch(branch); } catch (IOException ex) { throw WrappedException.wrap(ex); } }
private void handleException(int attempt, Exception exception) { try { exceptionHandler.handleException(getSession(), attempt, exception); } catch (Exception ex) { throw WrappedException.wrap(ex); } } }
@Override public URI toURI() { try { return new URI(getParent().toURI().toString() + "/" + getName()); } catch (URISyntaxException ex) { throw WrappedException.wrap(ex); } }
public void handleCommitInfo(CDOCommitInfo commitInfo) { try { out.writeByte(CDOProtocolConstants.REPLICATE_COMMIT); out.writeCDOCommitInfo(commitInfo); } catch (IOException ex) { throw WrappedException.wrap(ex); } }