diff options
author | Pawel Piech | 2011-12-14 05:14:43 +0000 |
---|---|---|
committer | Pawel Piech | 2011-12-14 05:14:43 +0000 |
commit | 4656a17f5c123bbcee34678ec5c207f49c8fc48d (patch) | |
tree | f6eb9aae98360c684d8384c29cc2f7c2211101c8 /org.eclipse.core.variables | |
parent | cc853b9b874eccb186d807a16cf173c90b0ce77b (diff) | |
download | eclipse.platform.debug-4656a17f5c123bbcee34678ec5c207f49c8fc48d.tar.gz eclipse.platform.debug-4656a17f5c123bbcee34678ec5c207f49c8fc48d.tar.xz eclipse.platform.debug-4656a17f5c123bbcee34678ec5c207f49c8fc48d.zip |
Bug 365504 - [launch] Launch fails when IDynamicVariableReslover.resolveValue() throws an exception.
Diffstat (limited to 'org.eclipse.core.variables')
-rw-r--r-- | org.eclipse.core.variables/src/org/eclipse/core/internal/variables/DynamicVariable.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/DynamicVariable.java b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/DynamicVariable.java index f2d48d810..a08e0e031 100644 --- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/DynamicVariable.java +++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/DynamicVariable.java @@ -51,7 +51,11 @@ public class DynamicVariable extends StringVariable implements IDynamicVariable throw new CoreException(new Status(IStatus.ERROR, VariablesPlugin.getUniqueIdentifier(), VariablesPlugin.INTERNAL_ERROR, NLS.bind("Contributed context variable resolver for {0} must be an instance of IContextVariableResolver.",new String[]{getName()}), null)); //$NON-NLS-1$ } } - return fResolver.resolveValue(this, argument); + try { + return fResolver.resolveValue(this, argument); + } catch (RuntimeException e) { + throw new CoreException(new Status(IStatus.ERROR, VariablesPlugin.getUniqueIdentifier(), VariablesPlugin.INTERNAL_ERROR, NLS.bind("Error while evaluating variable {0}.",new String[]{getName()}), e)); //$NON-NLS-1$ + } } /** |