title: How to handle unique constraint violation correctly in SDN4?
body: <p>I created a Neo4j Extension. It contains my own <code>TransactionEventHandler</code>. Sometimes, execution of its <code>beforeCommit()</code> method leads to <code>UniquePropertyConstraintViolationKernelException</code>. It's okay. But on the server side I receive <code>ResultProcessingException</code>. This exception looks too generalized. I think, it may be thrown for many reasons, not only in case of constraint violation. So, my question is how I should to handle constraint violations on the server side? I use SDN4. </p>
  
  <p><strong>Edit 1: All neo4j-ogm-* versions are updated to 2.0.3</strong></p>
  
  <pre><code>&lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.neo4j&lt;/groupId&gt;
              &lt;artifactId&gt;neo4j-ogm-core&lt;/artifactId&gt;
              &lt;version&gt;2.0.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.neo4j&lt;/groupId&gt;
              &lt;artifactId&gt;neo4j-ogm-http-driver&lt;/artifactId&gt;
              &lt;version&gt;2.0.3&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fXbA4.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fXbA4.gif" alt="enter image description here"></a></p>