summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-05-29 12:41:00 (EDT)
committer pelder2006-05-29 12:41:00 (EDT)
commit8c788435724d3b50a2fcb9c1b7439899b5315a7e (patch)
treea76b1520714719e4310f4057d014546ec396c8a9
parent30a1635c59d98840c19b2a22c016bdec7f2c2654 (diff)
downloadorg.eclipse.jet-8c788435724d3b50a2fcb9c1b7439899b5315a7e.zip
org.eclipse.jet-8c788435724d3b50a2fcb9c1b7439899b5315a7e.tar.gz
org.eclipse.jet-8c788435724d3b50a2fcb9c1b7439899b5315a7e.tar.bz2
[144263] Replace general exception (IllegalArgumentException) with specific exception XPathRuntimeException.
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Variable.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Variable.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Variable.java
index df420bf..c90ed8e 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Variable.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Variable.java
@@ -23,6 +23,7 @@ import org.eclipse.jet.internal.l10n.JET2Messages;
import org.eclipse.jet.internal.xpath.NodeSetImpl;
import org.eclipse.jet.xpath.Context;
import org.eclipse.jet.xpath.NodeSet;
+import org.eclipse.jet.xpath.XPathRuntimeException;
import org.eclipse.jet.xpath.XPathVariableResolver;
import org.eclipse.jet.xpath.inspector.INodeInspector;
import org.eclipse.jet.xpath.inspector.InspectorManager;
@@ -58,8 +59,7 @@ public class Variable extends ExprNode
{
// interpret a null value as meaning the variable is not defined
String msg = JET2Messages.XPath_VariableUndefined;
- // TODO Throw an XPath specific exception
- throw new IllegalArgumentException(MessageFormat.format(msg, new Object []{ name }));
+ throw new XPathRuntimeException(MessageFormat.format(msg, new Object []{ name }));
}
if (varValue instanceof String || varValue instanceof NodeSet || varValue instanceof Boolean || varValue instanceof Number)