secret
Created

  • Download Gist
backtrace
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
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
exception_wrapper.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13
def foo
begin
bar
rescue => e
raise StandardError, "wrapped", e
end
end
 
def bar
raise "whoops"
end
 
foo

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.