Created
May 26, 2013 08:59
-
-
Save igrep/5652151 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 IrrescuableException < StandardError | |
| # But actually, rescued! | |
| def is_a? _klass | |
| false | |
| end | |
| end | |
| begin | |
| raise IrrescuableException | |
| rescue Exception => e | |
| puts "I rescued #{e.class}" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment