Created
November 2, 2015 17:26
-
-
Save ErebusBat/30debc829a28fc2dccce 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
#!/usr/bin/env ruby | |
def method2 | |
1/0 | |
end | |
def method1(bare) | |
begin | |
method2 | |
rescue Exception => e | |
puts "Caught exception, bare=#{bare}" | |
raise if bare | |
raise e | |
end | |
end | |
# method1 true | |
method1 false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment