diff options
author | Andreas Sewe | 2016-08-15 13:26:04 +0000 |
---|---|---|
committer | Thomas Watson | 2016-08-15 14:10:28 +0000 |
commit | 8bad49735bfd8c77a210238cda09768b4eee7765 (patch) | |
tree | 4541e6f3e46576e94dd4cc30cb3c2f144b2d2a93 /bundles | |
parent | 367b49c7aedce2ae0a150e4751efbd4f1181ec31 (diff) | |
download | rt.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)
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/EclipsePreferences.java | 6 |
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 d38508e26..b3a90e1bd 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 { |