class Marten::DB::Errors::Rollback


Represents an explicit rollback error that can be raised from inside a transaction block. By default exceptions happening inside a transaction block are resurfaced outside of it, but this is not the case with Marten::DB::Errors::Rollback exceptions: when this specific exception is raised from inside a transaction block, the transaction will be rollbacked and the transaction block will return false.

Defined in: