bbatsov/ruby-style-guide — pull request #91 by samg (2012-04-06 03:18:08+00:00)
Title: Correct some erreoneous information about ruby execption handling.

begin; rescue Exception; end

is not the same as

begin: rescue; end # this rescues from StandardError, not Exception

This former is a bad practice which results in processes that don't
respond to `kill` and other signals. It's rarely what's intended.

Try this one for fun:

begin
# calls to exit and kill signals will be caught (except kill -9)
exit
rescue Exception
puts "you didn't really want to exit, right?"
# exception handling
end