py2neo.errors – Errors

Neo4j Errors

class py2neo.errors.Neo4jError(message, code)[source]

Base exception class for modelling error status codes returned by Neo4j.

For details of the status codes available, visit: https://neo4j.com/docs/status-codes/current/

classmethod split_code(code)[source]

Splits a status code, returning a 3-tuple of classification, category and title.

class py2neo.errors.ClientError(message, code)[source]
class py2neo.errors.DatabaseError(message, code)[source]
class py2neo.errors.TransientError(message, code)[source]

Connectivity Errors

class py2neo.errors.ConnectionUnavailable[source]

Raised when a connection cannot be acquired.

class py2neo.errors.ConnectionBroken[source]

Raised when a connection breaks during use.

class py2neo.errors.ConnectionLimit[source]

Raised when no further connections are available due to a configured resource limit.

class py2neo.errors.ServiceUnavailable(*args)[source]

Raised when no read or write service is available from a Neo4j installation.

class py2neo.errors.WriteServiceUnavailable(*args)[source]

Raised when no write service is available from a Neo4j installation, but a read service may still be available.

class py2neo.errors.ProtocolError[source]

Raised when a protocol violation or other unrecoverable protocol error occurs. These errors cannot be remedied automatically, and may result from a bug in the driver or server software.