Created
August 14, 2014 15:07
-
-
Save jjb/3174471215cb6b908ddd 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
def a | |
raise "i am in a" | |
end | |
def b | |
puts "i am in b" | |
a | |
end | |
def c | |
puts "i am in c" | |
b | |
end | |
c |
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
➔ ruby exceptiontest.rb | |
i am in c | |
i am in b | |
exceptiontest.rb:2:in `a': i am in a (RuntimeError) | |
from exceptiontest.rb:7:in `b' | |
from exceptiontest.rb:12:in `c' | |
from exceptiontest.rb:15:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment