diff options
author | Thomas Watson | 2010-02-05 22:05:20 +0000 |
---|---|---|
committer | Thomas Watson | 2010-02-05 22:05:20 +0000 |
commit | 030cd00210a0f6142b353367f777bb576babe8c4 (patch) | |
tree | b9f5bbf72b56ef2f6c2908fb38ad92247c476498 /bundles/org.eclipse.osgi/supplement/src | |
parent | af91773a0db541a7854d571f191a2c79bd90f324 (diff) | |
download | rt.equinox.framework-030cd00210a0f6142b353367f777bb576babe8c4.tar.gz rt.equinox.framework-030cd00210a0f6142b353367f777bb576babe8c4.tar.xz rt.equinox.framework-030cd00210a0f6142b353367f777bb576babe8c4.zip |
Bug 302011 - Should provide causing exception where possible
Diffstat (limited to 'bundles/org.eclipse.osgi/supplement/src')
-rw-r--r-- | bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ManifestElement.java | 4 | ||||
-rw-r--r-- | bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/NLS.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ManifestElement.java b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ManifestElement.java index ad48d8522..53001ac97 100644 --- a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ManifestElement.java +++ b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ManifestElement.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2008 IBM Corporation and others. + * Copyright (c) 2003, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -395,7 +395,7 @@ public class ManifestElement { manifestElement.addAttribute(next, val); directive = false; } catch (Exception e) { - throw new BundleException(NLS.bind(Msg.MANIFEST_INVALID_HEADER_EXCEPTION, header, value), BundleException.MANIFEST_ERROR); + throw new BundleException(NLS.bind(Msg.MANIFEST_INVALID_HEADER_EXCEPTION, header, value), BundleException.MANIFEST_ERROR, e); } c = tokenizer.getChar(); if (c == ';') /* more */{ diff --git a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/NLS.java b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/NLS.java index 30227f0bf..058e4a14d 100644 --- a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/NLS.java +++ b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/NLS.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2009 IBM Corporation and others. + * Copyright (c) 2005, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -173,7 +173,7 @@ public abstract class NLS { try { number = Integer.parseInt(message.substring(i, index)); } catch (NumberFormatException e) { - throw new IllegalArgumentException(); + throw (IllegalArgumentException) new IllegalArgumentException().initCause(e); } if (number == 0 && argZero != null) buffer.append(argZero); |