Exception: ActiveRecord::Rollback
- Inherits:
-
ActiveRecordError
- Object
- StandardError
- ActiveRecordError
- ActiveRecord::Rollback
- Defined in:
- lib/active_record/base.rb
Overview
Used by ActiveRecord transaction mechanism to distinguish rollback from other exceptional situations. You can use it to roll your transaction back explicitly in the block passed to transaction
method.