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 *, 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 *)
functions defined in mruby-error mrbgem.
- mrb_value mrb_ensure(mrb_state *, mrb_func_t, mrb_value, mrb_func_t, mrb_value)
- mrb_value mrb_rescue(mrb_state *, mrb_func_t, mrb_value, mrb_func_t, mrb_value)
- mrb_value mrb_rescue_exceptions(mrb_state *, mrb_func_t, mrb_value, mrb_func_t, mrb_value, mrb_int, struct RClass *, classes)
Define Summary
- #define MRUBY_ERROR_H
- #define mrb_exc_ptr
- #define mrb_exc_new_str_lit
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, 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)
functions defined in mruby-error mrbgem