Marko A. Rodriguez created TINKERPOP-1450: ---------------------------------------------
Summary: Add support for stack trace filling to FastNoSuchElementException Key: TINKERPOP-1450 URL: https://issues.apache.org/jira/browse/TINKERPOP-1450 Project: TinkerPop Issue Type: Improvement Components: process Affects Versions: 3.2.2, 3.1.3 Reporter: Marko A. Rodriguez Many people (like [~mbroecheler]) complain that if they have some complicated code they don't know where the problem is when a traversal throws a {{FastNoSuchElementException}}. I think we can remedy this in on of two ways: 1.) Only the root traversal will "fill in the stack trace" if there is no such element. This way, a stack trace is filled once and only once. However, the problem here is that the user will only know that the traversal failed, not where in the traversal it failed. 2.) Provide a "is.testing" System.getProperty() to {{FastNoSuchElementException}}. The problem here, this will only show stack traces for code that is executed in the same JVM as Gremlin's. This is great for actually testing (JUnit style), but not for production settings. 3.) ... dunno? Anyone have an idea? -- This message was sent by Atlassian JIRA (v6.3.4#6332)