TransactionRollbackError will be raised when a transaction is rolled back by the database due to a serialization failure or a deadlock.
TransactionRollbackError
See the following:
www.postgresql.org/docs/current/static/transaction-iso.html
dev.mysql.com/doc/mysql-errors/en/server-error-reference.html#error_er_lock_deadlock
© 2004–2021 David Heinemeier HanssonLicensed under the MIT License.