svn commit: r16405 - trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/EvaluateExpression.java
Bob Tarling <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: bobtarling
Date: 2008-12-21 16:38:55-0800
New Revision: 16405
Modified:
trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/EvaluateExpression.java
Log:
Throw an exception so that any critic will give up. Do critics, profiles or OCL interpreter have a specific exception type to use here?
Modified: trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/EvaluateExpression.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/EvaluateExpression.java?view=diff&pathrev=16405&r1=16404&r2=16405
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/EvaluateExpression.java (original)
+++ trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/EvaluateExpression.java 2008-12-21 16:38:55-0800
@@ -859,12 +859,16 @@
LOG.error("OCL does not evaluate to a " + type + " expression!! Exp: "
+ node + " Val: " + val);
val = dft;
+ // TODO: We need a specific exception type here.
+ throw new RuntimeException();
}
private void error(Object node) {
LOG.error("Unknown error processing OCL exp!! Exp: " + node + " Val: "
+ val);
val = null;
+ // TODO: We need a specific exception type here.
+ throw new RuntimeException();
}
}
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=989269
To unsubscribe from this discussion, e-mail: [[email protected]].