public class NotFoundException extends RuntimeException
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.
GraphDatabaseService
,
Serialized FormConstructor and Description |
---|
NotFoundException() |
NotFoundException(String message) |
NotFoundException(String message,
Throwable cause) |
NotFoundException(Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.