Header: mruby/error.h
Overview
MRuby error handling.
Function Summary collapse
-
void mrb_sys_fail(mrb_state *, const char *)
-
mrb_value mrb_exc_new_str(mrb_state *, struct RClass*, mrb_value)
-
mrb_value mrb_make_exception(mrb_state *, mrb_int, const mrb_value *)
-
mrb_value mrb_exc_backtrace(mrb_state *, mrb_value)
-
mrb_value mrb_get_backtrace(mrb_state *)
-
mrb_noreturn mrb_no_method_error(mrb_state *, mrb_sym, mrb_value, const char *, ...)
-
mrb_value mrb_f_raise(mrb_state*, mrb_value)
declaration for
fail
method. -
mrb_value mrb_protect(mrb_state *, mrb_func_t, mrb_value, mrb_bool *)
Protect.
-
mrb_value mrb_ensure(mrb_state *, mrb_func_t, mrb_value, mrb_func_t, mrb_value)
Ensure.
-
mrb_value mrb_rescue(mrb_state *, mrb_func_t, mrb_value, mrb_func_t, mrb_value)
Rescue.
-
mrb_value mrb_rescue_exceptions(mrb_state *, mrb_func_t, mrb_value, mrb_func_t, mrb_value, mrb_int, struct RClass *, classes)
Rescue exception.
Define Summary
- #define MRUBY_ERROR_H
- #define mrb_exc_ptr
- #define mrb_exc_new_str_lit
- #define mrb_break_value_get
- #define mrb_break_value_set
- #define RBREAK_VALUE_TT_MASK
- #define mrb_break_proc_get
- #define mrb_break_proc_set
Function Details
void mrb_sys_fail(mrb_state * mrb, const char * mesg)
mrb_value mrb_exc_new_str(mrb_state * mrb, struct RClass* c, mrb_value str)
mrb_value mrb_make_exception(mrb_state * mrb, mrb_int argc, const mrb_value * argv)
mrb_value mrb_exc_backtrace(mrb_state * mrb, mrb_value exc)
mrb_value mrb_get_backtrace(mrb_state * mrb)
mrb_noreturn mrb_no_method_error(mrb_state * mrb, mrb_sym id, mrb_value args, const char * fmt, ... )
mrb_value mrb_f_raise(mrb_state* , mrb_value )
declaration for fail
method
mrb_value mrb_protect(mrb_state * mrb, mrb_func_t body, mrb_value data, mrb_bool * state)
Protect
Implemented in the mruby-error mrbgem
mrb_value mrb_ensure(mrb_state * mrb, mrb_func_t body, mrb_value b_data, mrb_func_t ensure, mrb_value e_data)
Ensure
Implemented in the mruby-error mrbgem
mrb_value mrb_rescue(mrb_state * mrb, mrb_func_t body, mrb_value b_data, mrb_func_t rescue, mrb_value r_data)
Rescue
Implemented in the mruby-error mrbgem
mrb_value mrb_rescue_exceptions(mrb_state * mrb, mrb_func_t body, mrb_value b_data, mrb_func_t rescue, mrb_value r_data, mrb_int len, struct RClass * , classes )
Rescue exception
Implemented in the mruby-error mrbgem