/** * @return UserCancelledException if some user cancellation * @since 3.0 */ protected UserCancelledException newUserCancelledException() { return new UserCancelledException(Messages.AbstractRetrieveFileTransfer_Exception_User_Cancelled); }
protected UserCancelledException newUserCancelledException() { return new UserCancelledException(Messages.AbstractRetrieveFileTransfer_Exception_User_Cancelled); }
while (!isDone()) { if (monitor.isCanceled()) throw new UserCancelledException(Messages.AbstractOutgoingFileTransfer_Exception_User_Cancelled); final int bytes = localFileContents.read(buf); if (bytes != -1) {
handleReceivedData(buf, bytes, factor, monitor); } catch (OperationCanceledException e) { throw new UserCancelledException(Messages.AbstractRetrieveFileTransfer_Exception_User_Cancelled);