Class 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 Transaction.getNodeByElementId(java.lang.String) passing in an id that does not exist will cause this exception to be thrown. Entity.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.

See Also:
  • Constructor Details

    • NotFoundException

      public NotFoundException()
    • NotFoundException

      public NotFoundException(String message)
    • NotFoundException

      public NotFoundException(String message, Throwable cause)
    • NotFoundException

      public NotFoundException(Throwable cause)