Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
MyExceptions = [RangeError, RegexpError, IOError].freeze
raise IOError, "should be rescued"
rescue *MyExceptions => e
puts e

This comment has been minimized.

Copy link

cisolarix commented Mar 26, 2014

This way we don't have to slap ourselves in the face, huh?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.