Method: Exception#set_backtrace
- Defined in:
- lib/source/ruby.rb
#set_backtrace(ary) ⇒ Object
call-seq:
exc.set_backtrace(array) -> array
Sets the backtrace information associated with exc. The argument must be an array of String objects in the format described in Exception#backtrace.
2927 2928 2929 2930 2931 |
# File 'lib/source/ruby.rb', line 2927 def set_backtrace(ary) `for(var i=0,l=ary.length,result='';i<l;++i){result=result+'@xx://'+ary[i]._value+'\\n';}` `this._stack=result` return `ary` end |