MagLev/maglev — pull request #241 by kirstin (2013-01-28 18:20:32+00:00)
Title: merged Exception.rb : class TransactionError was inserted

I added the Class TransactionError in Exception.rb so now I can do this:

if @lecture.valid?
begin
Maglev.commit_transaction
rescue TransactionError => error
puts error.object.class
puts error.object
raise
end

When a TransactionError is raised I want to know more about the object that was transient than just the class name.