org.neo4j.graphdb
Class ConstraintViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.neo4j.graphdb.ConstraintViolationException
All Implemented Interfaces:
Serializable

public class ConstraintViolationException
extends RuntimeException

Thrown when the database is asked to modify data in a way that violates one or more constraints that it is expected to uphold. For instance, if removing a node that still has relationships.

See Also:
Serialized Form

Constructor Summary
ConstraintViolationException(String msg)
           
ConstraintViolationException(String msg, Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstraintViolationException

public ConstraintViolationException(String msg)

ConstraintViolationException

public ConstraintViolationException(String msg,
                                    Throwable cause)


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.