Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2011-12-14 05:14:43 +0000
committerPawel Piech2011-12-14 05:14:43 +0000
commit4656a17f5c123bbcee34678ec5c207f49c8fc48d (patch)
treef6eb9aae98360c684d8384c29cc2f7c2211101c8 /org.eclipse.core.variables
parentcc853b9b874eccb186d807a16cf173c90b0ce77b (diff)
downloadeclipse.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.java6
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$
+ }
}
/**

Back to the top