rb_throw

Function rb_throw 

Source
pub unsafe extern "C" fn rb_throw(tag: *const c_char, val: VALUE) -> !
Expand description

Transfers control to the end of the active catch block waiting for tag. Raises [rb_eUncughtThrow] if there is no catch block for the tag. The second parameter supplies a return value for the catch block, which otherwise defaults to ::RUBY_Qnil. For examples, see rb_catch.

ยง@param[in] tag Tag string. @param[in] val Value to throw. @exception [rb_eUncughtThrow] There is no corresponding catch clause. @note It never returns.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3