[ 
https://issues.apache.org/jira/browse/TINKERPOP3-941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Kuppitz updated TINKERPOP3-941:
--------------------------------------
    Assignee: Marko A. Rodriguez

> 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
>            Assignee: Marko A. Rodriguez
>
> 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)

Reply via email to