IntegrityError
Exception raised when the relational integrity of the database is affected, e.g. a foreign key check fails. It must be a subclass of DatabaseError.
The IntegrityError class is accessible via the sqlapi.exceptions module.
Methods
See the source for more information.