Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-05-19 17:43:29 -0400
committerPascal Rapicault2010-05-19 17:43:29 -0400
commita679d1115f7b425bfd65b098a0c33e4472cf27d5 (patch)
treebd1c3d002aea57df859777083a71b84ab3b5d825
parentc06094fec76d3f09b860bbd255332a7a44bfbda2 (diff)
downloadrt.equinox.p2-a679d1115f7b425bfd65b098a0c33e4472cf27d5.tar.gz
rt.equinox.p2-a679d1115f7b425bfd65b098a0c33e4472cf27d5.tar.xz
rt.equinox.p2-a679d1115f7b425bfd65b098a0c33e4472cf27d5.zip
Bug 313585 - FileReader should check for ECF UserCancelledException and throw an IOException with cause OperationCancelledException
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/FileReader.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/FileReader.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/FileReader.java
index 753110431..28404f09f 100644
--- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/FileReader.java
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/FileReader.java
@@ -257,6 +257,11 @@ public final class FileReader extends FileTransferJob implements IFileTransferLi
if (t instanceof IOException)
e = (IOException) t;
else {
+ if (t instanceof UserCancelledException) {
+ Throwable cause = t;
+ t = new OperationCanceledException(t.getMessage());
+ t.initCause(cause);
+ }
e = new IOException(t.getMessage());
e.initCause(t);
}

Back to the top