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 involves multiple concurrent transactions which obtain a reference to the same node or relationship, which is then deleted by one of the transactions. If the deleting transaction commits, then invoking any node or relationship methods within any of the remaining open transactions will cause this exception to be thrown.
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–2016 The Neo4j Graph Database Project. All rights reserved.