class

Marten::DB::Errors::Rollback

Inherits Exception / Reference / Object

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.