Neo4j Community

org.neo4j.graphdb
Class NotFoundException

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

public class NotFoundException
extends RuntimeException

This exception will be thrown if a request is made to a node, relationship or property that does not exist. As an example, using GraphDatabaseService.getNodeById(long) passing in an id that does not exist will cause this exception to be thrown. PropertyContainer.getProperty(String) will also throw this exception if the given key does not exist.

Another scenario when this exception will be thrown is if one or more transactions keep a reference to a node or relationship that gets deleted in some other transaction. If the deleting transaction commits all other transactions having a reference to the deleted node or relationship will throw this exception when invoking any of the methods on the node or relationship.

See Also:
GraphDatabaseService, Serialized Form

Constructor Summary
NotFoundException()
           
NotFoundException(String message)
           
NotFoundException(String message, Throwable cause)
           
NotFoundException(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

NotFoundException

public NotFoundException()

NotFoundException

public NotFoundException(String message)

NotFoundException

public NotFoundException(String message,
                         Throwable cause)

NotFoundException

public NotFoundException(Throwable cause)

Neo4j Community

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