Created
September 15, 2017 10:13
-
-
Save kalorz/db5ececef5a5515d099fffa44b026fbe to your computer and use it in GitHub Desktop.
Ruby Gotchas: Exception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BangBang < Exception | |
end | |
begin | |
raise BangBang | |
rescue | |
puts 'Caught it!' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment