You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/04/13 19:22:44 UTC
[23/43] incubator-tinkerpop git commit: Improved error messaging in
exception of IdManager.
Improved error messaging in exception of IdManager.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/ef5f8f01
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/ef5f8f01
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/ef5f8f01
Branch: refs/heads/master
Commit: ef5f8f01b44b0a4da640bf59e6a18c6a09d33c37
Parents: fe106ad
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Apr 10 09:13:06 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Apr 10 09:13:06 2015 -0400
----------------------------------------------------------------------
.../tinkerpop/gremlin/tinkergraph/structure/TinkerGraph.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/ef5f8f01/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraph.java
----------------------------------------------------------------------
diff --git a/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraph.java b/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraph.java
index 339d677..9cc7501 100644
--- a/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraph.java
+++ b/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraph.java
@@ -495,7 +495,7 @@ public class TinkerGraph implements Graph {
else if (id instanceof String)
return Long.parseLong((String) id);
else
- throw new IllegalArgumentException("Expected an id that is convertible to Long");
+ throw new IllegalArgumentException(String.format("Expected an id that is convertible to Long but received %s", id.getClass()));
}
},
@@ -518,7 +518,7 @@ public class TinkerGraph implements Graph {
else if (id instanceof String)
return Integer.parseInt((String) id);
else
- throw new IllegalArgumentException("Expected an id that is convertible to Integer");
+ throw new IllegalArgumentException(String.format("Expected an id that is convertible to Integer but received %s", id.getClass()));
}
},
@@ -539,7 +539,7 @@ public class TinkerGraph implements Graph {
else if (id instanceof String)
return java.util.UUID.fromString((String) id);
else
- throw new IllegalArgumentException("Expected an id that is convertible to UUID");
+ throw new IllegalArgumentException(String.format("Expected an id that is convertible to UUID but received %s", id.getClass()));
}
},