I'm iterating over the results of a view and I need exceptions to be raised inside the iterator.
From the view example:
res.each do |row|
# Returns extended results by default
raise StandardError
end
raise StandardError will stop the iterator and hang the whole application in a useless state.