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

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Nov 9 23:42:36 CST 2012


Author: hategan
Date: 2012-11-09 23:42:36 -0600 (Fri, 09 Nov 2012)
New Revision: 6022

Modified:
   trunk/src/org/griphyn/vdl/mapping/ArrayDataNode.java
Log:
delegate the exact message construction to the exception

Modified: trunk/src/org/griphyn/vdl/mapping/ArrayDataNode.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/ArrayDataNode.java	2012-11-10 05:34:58 UTC (rev 6021)
+++ trunk/src/org/griphyn/vdl/mapping/ArrayDataNode.java	2012-11-10 05:42:36 UTC (rev 6022)
@@ -141,7 +141,7 @@
                         fields, path.butFirst());
                 }
                 catch (NoSuchFieldException e) {
-                    throw new InvalidPathException("Invalid index (" + path.getKey(0) + ") for " + this);
+                    throw new InvalidPathException(path.getKey(0), this);
                 }
             }
         }




More information about the Swift-commit mailing list