Current File : //proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Exception/backtrace-i.yaml |
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: "Returns any backtrace associated with the exception. The backtrace is an array of strings, each containing either ``filename:lineNo: in `method''' or ``filename:lineNo.''"
- !ruby/struct:SM::Flow::VERB
body: " def a\n raise "boom"\n end\n\n def b\n a()\n end\n\n begin\n b()\n rescue => detail\n print detail.backtrace.join("\\n")\n end\n"
- !ruby/struct:SM::Flow::P
body: <em>produces:</em>
- !ruby/struct:SM::Flow::VERB
body: " prog.rb:2:in `a'\n prog.rb:6:in `b'\n prog.rb:10\n"
full_name: Exception#backtrace
is_singleton: false
name: backtrace
params: |
exception.backtrace => array
visibility: public