Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link

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.