https://github.com/neo4j/neo4j/issues/1922
On Sun, Feb 9, 2014 at 3:28 PM, Michael Hunger < [email protected]> wrote: > Right now that's the best you can do I think. > > Can you raise an github issue about adding a specific error code for > deadlocks? that would be great. > > Thanks > > Michael > > Am 09.02.2014 um 01:26 schrieb Aran Mulholland <[email protected]>: > > I am writing a thin client (simpleneo4js) for executing cypher statements > in node.js. I want to enable queries to be re-run in a deadlock scenario. > In order to detect a deadlock I am doing this with the returned error: > > var deadlock = (error.code == > "Neo.DatabaseError.Statement.ExecutionFailure") && > (error.message.indexOf("deadlock") != -1); > > Is there a better way to do this? > > There does not seem to be a specific error code returned when there is a > deadlock. Should there be? > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
