Class LocalJumpError
In: eval.c
Parent: StandardError

Methods

exit_value   reason  

Public Instance methods

call_seq:

  local_jump_error.exit_value  => obj

Returns the exit value associated with this LocalJumpError.

[Source]

/*
 * call_seq:
 *   local_jump_error.exit_value  => obj
 *
 * Returns the exit value associated with this +LocalJumpError+.
 */
static VALUE
localjump_xvalue(exc)
    VALUE exc;
{
    return rb_iv_get(exc, "@exit_value");
}

The reason this block was terminated: :break, :redo, :retry, :next, :return, or :noreason.

[Source]

/*
 * call-seq:
 *    local_jump_error.reason   => symbol
 *
 * The reason this block was terminated:
 * :break, :redo, :retry, :next, :return, or :noreason.
 */

static VALUE
localjump_reason(exc)
    VALUE exc;
{
    return rb_iv_get(exc, "@reason");
}

[Validate]