You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Matt Frantz (JIRA)" <ji...@apache.org> on 2015/04/09 01:40:12 UTC
[jira] [Commented] (TINKERPOP3-619) select should not throw
[ https://issues.apache.org/jira/browse/TINKERPOP3-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14486342#comment-14486342 ]
Matt Frantz commented on TINKERPOP3-619:
----------------------------------------
Another reasonable alternative is to stop traversal, e.g. raise {{NoSuchElementException}}.
> select should not throw
> -----------------------
>
> Key: TINKERPOP3-619
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-619
> Project: TinkerPop 3
> Issue Type: Improvement
> Reporter: Matt Frantz
>
> Rather than raise {{IllegalArgumentException}}, if {{select}} cannot find the label, it should return {{null}}. This is preferable because of the difficulty of dealing with exceptions during traversal. It is not always indicative of a static flaw in the traversal, since conditional logic in the traversal may bypass certain {{as}} steps.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)