Perhaps better to avoid deadlocks all together, something smells further up the chain. . Look there.
--
You received this message because you are subscribed to the Google Groups "Neo4jClient" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4jclient...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The threading might not be in a good model design.
Another library author here.
The DeadlockException occurs on the Java side, and is then returned over REST as text. Whenever we receive an error from Neo, we just wrap it up in a NeoException on the .NET side.
There is no more structured way to do it than what you are doing.
I’ve thought about us trying to rehydrate the Java exceptions into fake .NET ones, but that seems like it would lead to its own confusion. Also, it would be susceptible to breakages as the text format is not a documented part of the API contract from Neo, so they always have the right to change their exception formatter.
--
Tatham Oddie
I can’t guarantee the string though: that will just be whatever happens to come back over the API. J