# File lib/dbi/handles/database.rb, line 203 def transaction sanity_check raise InterfaceError, "No block given" unless block_given? commit begin yield self commit rescue Exception rollback raise end end