Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-03-11 21:17:05 -0400
committerslewis2009-03-11 21:17:05 -0400
commit4487c8c29391b092cbbcaeb9a28ce9c1e8601de8 (patch)
tree22c2b011a397fd511ede0296d017dc153fb92b8b /providers/bundles/org.eclipse.ecf.provider.filetransfer
parent90d9f664fd9f6ee6f5079ecd93a49f6d9636c806 (diff)
downloadorg.eclipse.ecf-4487c8c29391b092cbbcaeb9a28ce9c1e8601de8.tar.gz
org.eclipse.ecf-4487c8c29391b092cbbcaeb9a28ce9c1e8601de8.tar.xz
org.eclipse.ecf-4487c8c29391b092cbbcaeb9a28ce9c1e8601de8.zip
Patch applied for https://bugs.eclipse.org/bugs/show_bug.cgi?id=267747
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.filetransfer')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/AbstractRetrieveFileTransfer.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/AbstractRetrieveFileTransfer.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/AbstractRetrieveFileTransfer.java
index 3a1c49ef6..dbdc21b0f 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/AbstractRetrieveFileTransfer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/AbstractRetrieveFileTransfer.java
@@ -462,9 +462,8 @@ public abstract class AbstractRetrieveFileTransfer implements IIncomingFileTrans
* implementation of this method.
*
* @throws IncomingFileTransferException
- * @throws Exception
*/
- protected abstract void openStreams() throws IncomingFileTransferException, Exception;
+ protected abstract void openStreams() throws IncomingFileTransferException;
/*
* (non-Javadoc)
@@ -768,14 +767,16 @@ public abstract class AbstractRetrieveFileTransfer implements IIncomingFileTrans
this.rangeSpecification = rangeSpec;
try {
- try {
- this.remoteFileURL = rFileID.getURL();
- } catch (final MalformedURLException e) {
- throw new IncomingFileTransferException(NLS.bind(Messages.AbstractRetrieveFileTransfer_MalformedURLException, rFileID), e);
- }
+ this.remoteFileURL = rFileID.getURL();
+ } catch (final MalformedURLException e) {
+ setDoneException(e);
+ fireTransferReceiveDoneEvent();
+ return;
+ }
+ try {
setupProxies();
openStreams();
- } catch (final Exception e) {
+ } catch (final IncomingFileTransferException e) {
setDoneException(e);
fireTransferReceiveDoneEvent();
}

Back to the top