-
-
Save dbussink/b2e01e51d0c50b27004f to your computer and use it in GitHub Desktop.
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
An exception occurred running scratchpad/exception_wrap.rb | |
wrapped (StandardError) | |
Backtrace: | |
Object#foo at scratchpad/exception_wrap.rb:5 | |
Object#__script__ at scratchpad/exception_wrap.rb:13 | |
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:68 | |
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:118 | |
Rubinius::Loader#script at kernel/loader.rb:615 | |
Rubinius::Loader#main at kernel/loader.rb:816 | |
Caused by: whoops (RuntimeError) | |
Backtrace: | |
Object#bar at scratchpad/exception_wrap.rb:10 | |
Object#foo at scratchpad/exception_wrap.rb:3 | |
Object#__script__ at scratchpad/exception_wrap.rb:13 | |
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:68 | |
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:118 | |
Rubinius::Loader#script at kernel/loader.rb:615 | |
Rubinius::Loader#main at kernel/loader.rb:816 |
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
def foo | |
begin | |
bar | |
rescue => e | |
raise StandardError, "wrapped", e | |
end | |
end | |
def bar | |
raise "whoops" | |
end | |
foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment