Skip to content

Errors

Exception classes

Exception classes for the DataJoint library.

This module defines the exception hierarchy for DataJoint errors.

DataJointError

Bases: Exception

Base class for errors specific to DataJoint internal operation.

suggest

suggest(*args)

Regenerate the exception with additional arguments.

Parameters:

Name Type Description Default
*args object

Additional arguments to append to the exception.

()

Returns:

Type Description
DataJointError

A new exception of the same type with the additional arguments.

LostConnectionError

Bases: DataJointError

Loss of server connection.

QueryError

Bases: DataJointError

Errors arising from queries to the database.

QuerySyntaxError

Bases: QueryError

Errors arising from incorrect query syntax.

AccessError

Bases: QueryError

User access error: insufficient privileges.

MissingTableError

Bases: DataJointError

Query on a table that has not been declared.

DuplicateError

Bases: QueryError

Integrity error caused by a duplicate entry into a unique key.

IntegrityError

Bases: QueryError

Integrity error triggered by foreign key constraints.

UnknownAttributeError

Bases: QueryError

User requests an attribute name not found in query heading.

MissingAttributeError

Bases: QueryError

Required attribute value not provided in INSERT.

MissingExternalFile

Bases: DataJointError

External file managed by DataJoint is no longer accessible.

BucketInaccessible

Bases: DataJointError

S3 bucket is inaccessible.