Daniel Kuppitz created TINKERPOP3-941:
-----------------------------------------
Summary: Improve error message for wrong order().by() arguments
Key: TINKERPOP3-941
URL: https://issues.apache.org/jira/browse/TINKERPOP3-941
Project: TinkerPop 3
Issue Type: Improvement
Reporter: Daniel Kuppitz
The traversal {code}g.V(hercules).local(__.outE().order().by("lala")){code}
throws the following exception:
{noformat}
java.lang.UnsupportedOperationException: Use
OrderGlobalStep.addComparator(TraversalComparator) to add a local child
traversal:OrderGlobalStep
at
org.apache.tinkerpop.gremlin.process.traversal.step.map.OrderGlobalStep.addLocalChild(OrderGlobalStep.java:98)
at
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal.by(GraphTraversal.java:1016)
at
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal.by(GraphTraversal.java:1033)`
{noformat}
If you ran into this exception a few times, you'll know how easy it is to fix
that, but I concur with [~mbroecheler] when he says that this message is really
confusing. Users won't realize that they need to add {{incr}} or {{decr}} as a
second argument in {{by()}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)