# File lib/dbi/dbi.rb, line 703 def transaction raise InterfaceError, "Database connection was already closed!" if @handle.nil? raise InterfaceError, "No block given" unless block_given? commit begin yield self commit rescue Exception rollback raise end end