Errors

Connectivity errors

class neo4j.exceptions.ServiceUnavailable

Raised when a database server or service is not available. This may be due to incorrect configuration or could indicate a runtime failure of a database service that the driver is unable to route around.

class neo4j.exceptions.SecurityError

Raised when a security issue occurs, generally around TLS or authentication.

Cypher execution errors

class neo4j.exceptions.CypherError

Raised when the Cypher engine returns an error to the client. There are many possible types of Cypher error, each identified by a unique status code.

The three classifications of status code are supported by the three subclasses of CypherError, listed below:

class neo4j.exceptions.ClientError

The Client sent a bad request - changing the request might yield a successful outcome.

class neo4j.exceptions.DatabaseError

The database failed to service the request.

class neo4j.exceptions.TransientError

The database cannot service the request right now, retrying later might yield a successful outcome.

Low-level errors

class neo4j.exceptions.ProtocolError

Raised when an unexpected or unsupported protocol event occurs. This error generally indicates a fault with the driver or server software. If you receive this error, please raise a GitHub issue or a support ticket.