Exception: LocalJumpError

Inherits:
StandardError show all
Defined in:
eval.c

Instance Method Summary collapse

Methods inherited from Exception

#backtrace, #exception, exception, #initialize, #inspect, #message, #set_backtrace, #to_s, #to_str

Constructor Details

This class inherits a constructor from Exception

Instance Method Details

#exit_valueObject

call_seq:

local_jump_error.exit_value  => obj

Returns the exit value associated with this LocalJumpError.



# File 'eval.c'

/*
 * 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");
}

#reasonObject

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



# File 'eval.c'

/*
 * 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");
}