[Swift-commit] r6019 - trunk/src/org/griphyn/vdl/mapping

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Nov 9 23:28:59 CST 2012


Author: hategan
Date: 2012-11-09 23:28:59 -0600 (Fri, 09 Nov 2012)
New Revision: 6019

Modified:
   trunk/src/org/griphyn/vdl/mapping/DependentException.java
Log:
user friendly variable name in dependent exceptions

Modified: trunk/src/org/griphyn/vdl/mapping/DependentException.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/DependentException.java	2012-11-10 05:27:57 UTC (rev 6018)
+++ trunk/src/org/griphyn/vdl/mapping/DependentException.java	2012-11-10 05:28:59 UTC (rev 6019)
@@ -41,6 +41,15 @@
 	public DSHandle getHandle() {
 		return handle;
 	}
+	
+	public String getVariableName() {
+	    if (handle instanceof AbstractDataNode) {
+	        return ((AbstractDataNode) handle).getDisplayableName();
+	    }
+	    else {
+	        return handle.toString();
+	    }
+	}
 
 	public String toString() {
 		return getMessage();




More information about the Swift-commit mailing list