Open virusman opened 11 years ago
It seems like the possible solution is to throw BadPluginInvocationException instead of BadInputException and provide the original exception to the constructor. Neo4j resolves such exceptions as output.badRequest( e.getCause() ), providing the original stack trace: https://github.com/neo4j/neo4j/blob/2.0/community/server/src/main/java/org/neo4j/server/rest/web/ExtensionService.java#L186
We're getting random errors in neo4j gremlin plugin. Once in a few days it just returns BadInputException/NullPointerException until we restart neo4j. Error message and stack trace:
So it just rethrows any errors as BadInputException with no way to access the original stack trace. Is it possible to add output of the original stack trace somewhere?