public Method

Exception.set_backtrace(p1)

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.

Source Code

/*
*  call-seq:
*     exc.set_backtrace(array)   =>  array
*  
*  Sets the backtrace information associated with <i>exc</i>. The
*  argument must be an array of <code>String</code> objects in the
*  format described in <code>Exception#backtrace</code>.
*     
*/

static VALUE
exc_set_backtrace(exc, bt)
   VALUE exc;
   VALUE bt;
{
   return rb_iv_set(exc, "bt", rb_check_backtrace(bt));
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.