Exception: LocalJumpError
- Inherits:
-
StandardError
- Object
- Exception
- StandardError
- LocalJumpError
- Defined in:
- eval.c
Instance Method Summary collapse
-
#exit_value ⇒ Object
call_seq: local_jump_error.exit_value => obj.
-
#reason ⇒ Object
The reason this block was terminated: :break, :redo, :retry, :next, :return, or :noreason.
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_value ⇒ Object
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");
}
|
#reason ⇒ Object
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");
}
|