class

ActiveRecord::NoDatabaseError::TransactionRollbackError

rails latest stable - Superclass: ActiveRecord::StatementInvalid

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

TransactionRollbackError will be raised when a transaction is rolled back by the database due to a serialization failure or a deadlock.

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

Files

  • activerecord/lib/active_record/errors.rb