Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Sewe2016-08-15 13:26:04 +0000
committerThomas Watson2016-08-15 14:10:28 +0000
commit8bad49735bfd8c77a210238cda09768b4eee7765 (patch)
tree4541e6f3e46576e94dd4cc30cb3c2f144b2d2a93
parent367b49c7aedce2ae0a150e4751efbd4f1181ec31 (diff)
downloadrt.equinox.bundles-8bad49735bfd8c77a210238cda09768b4eee7765.tar.gz
rt.equinox.bundles-8bad49735bfd8c77a210238cda09768b4eee7765.tar.xz
rt.equinox.bundles-8bad49735bfd8c77a210238cda09768b4eee7765.zip
Bug 499660 - Thrown BackingStoreException should not hidden root cause
Change-Id: I6f91baef09c1ab59e3ec3b7487300a6cc799e3c0 Signed-off-by: Andreas Sewe <andreas.sewe@codetrails.com> (cherry picked from commit 362ddf842974ecfef3031ad6a94182971c2d5feb)
-rw-r--r--bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/EclipsePreferences.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/EclipsePreferences.java b/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/EclipsePreferences.java
index d38508e2..b3a90e1b 100644
--- a/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/EclipsePreferences.java
+++ b/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/EclipsePreferences.java
@@ -282,7 +282,7 @@ public class EclipsePreferences implements IEclipsePreferences, IScope {
} catch (IOException e) {
String message = NLS.bind(PrefsMessages.preferences_saveException, location);
log(new Status(IStatus.ERROR, PrefsMessages.OWNER_NAME, IStatus.ERROR, message, e));
- throw new BackingStoreException(message);
+ throw new BackingStoreException(message, e);
} finally {
if (output != null)
try {
@@ -700,11 +700,11 @@ public class EclipsePreferences implements IEclipsePreferences, IScope {
} catch (IOException e) {
String message = NLS.bind(PrefsMessages.preferences_loadException, location);
log(new Status(IStatus.INFO, PrefsMessages.OWNER_NAME, IStatus.INFO, message, e));
- throw new BackingStoreException(message);
+ throw new BackingStoreException(message, e);
} catch (IllegalArgumentException e) {
String message = NLS.bind(PrefsMessages.preferences_loadException, location);
log(new Status(IStatus.INFO, PrefsMessages.OWNER_NAME, IStatus.INFO, message, e));
- throw new BackingStoreException(message);
+ throw new BackingStoreException(message, e);
} finally {
if (input != null)
try {

Back to the top