Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "internal.h"
#include "ruby/st.h"
#include "ruby_assert.h"
#include "vm_core.h"
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include "known_errors.inc"
Go to the source code of this file.
Data Structures | |
struct | bug_reporters |
Macros | |
#define | EXIT_SUCCESS 0 |
#define | WIFEXITED(status) 1 |
#define | WEXITSTATUS(status) (status) |
#define | defined_error(name, num) if (err == (num)) return (name); |
#define | undefined_error(name) |
#define | MAX_BUG_REPORTERS 0x100 |
#define | REPORT_BUG_BUFSIZ 256 |
#define | bug_report_begin(out, fmt) |
#define | report_bug(file, line, fmt, ctx) |
#define | report_bug_valist(file, line, fmt, ctx, args) |
#define | write_or_abort(fd, str, len) (write((fd), (str), (len)) < 0 ? abort() : (void)0) |
#define | WRITE_CONST(fd, str) write_or_abort((fd),(str),sizeof(str) - 1) |
#define | UNDEF_LEAKED "undef leaked to the Ruby space" |
#define | id_bt idBt |
#define | id_bt_locations idBt_locations |
#define | id_mesg idMesg |
#define | id_status ruby_static_id_status |
#define | name_err_mesg_free RUBY_TYPED_DEFAULT_FREE |
#define | FAKE_CSTR(v, str) rb_setup_fake_str((v), (str), rb_strlen_lit(str), usascii) |
#define | defined_error(name, num) set_syserr((num), (name)); |
#define | undefined_error(name) set_syserr(0, (name)); |
Enumerations | |
enum | { NAME_ERR_MESG__MESG, NAME_ERR_MESG__RECV, NAME_ERR_MESG__NAME, NAME_ERR_MESG_COUNT } |
#define bug_report_begin | ( | out, | |
fmt | |||
) |
#define defined_error | ( | name, | |
num | |||
) | set_syserr((num), (name)); |
#define EXIT_SUCCESS 0 |
Definition at line 32 of file error.c.
Referenced by error_handle(), exit_initialize(), exit_success_p(), goruby_run_node(), options(), rb_thread_kill(), ruby_cleanup(), and ruby_executable_node().
#define FAKE_CSTR | ( | v, | |
str | |||
) | rb_setup_fake_str((v), (str), rb_strlen_lit(str), usascii) |
Referenced by name_err_mesg_to_str().
#define id_bt idBt |
Definition at line 789 of file error.c.
Referenced by exc_backtrace(), exc_initialize(), exc_set_backtrace(), and rb_name_err_new().
#define id_bt_locations idBt_locations |
Definition at line 790 of file error.c.
Referenced by exc_backtrace_locations().
#define id_mesg idMesg |
Definition at line 791 of file error.c.
Referenced by exc_equal(), exc_initialize(), name_err_receiver(), and rb_name_err_new().
#define id_status ruby_static_id_status |
Definition at line 792 of file error.c.
Referenced by exit_initialize(), exit_status(), exit_success_p(), and sysexit_status().
#define MAX_BUG_REPORTERS 0x100 |
Definition at line 304 of file error.c.
Referenced by rb_bug_reporter_add().
#define name_err_mesg_free RUBY_TYPED_DEFAULT_FREE |
#define report_bug | ( | file, | |
line, | |||
fmt, | |||
ctx | |||
) |
Definition at line 452 of file error.c.
Referenced by rb_bug(), and rb_bug_context().
#define REPORT_BUG_BUFSIZ 256 |
Definition at line 328 of file error.c.
Referenced by bug_report_begin_valist(), and bug_report_file().
#define report_bug_valist | ( | file, | |
line, | |||
fmt, | |||
ctx, | |||
args | |||
) |
Definition at line 461 of file error.c.
Referenced by rb_report_bug_valist().
#define UNDEF_LEAKED "undef leaked to the Ruby space" |
Definition at line 656 of file error.c.
Referenced by rb_check_type(), and rb_unexpected_type().
#define undefined_error | ( | name | ) |
#define undefined_error | ( | name | ) | set_syserr(0, (name)); |
#define WEXITSTATUS | ( | status | ) | (status) |
Definition at line 40 of file error.c.
Referenced by exit_success_p().
#define WIFEXITED | ( | status | ) | 1 |
Definition at line 36 of file error.c.
Referenced by exit_success_p().
#define WRITE_CONST | ( | fd, | |
str | |||
) | write_or_abort((fd),(str),sizeof(str) - 1) |
Definition at line 531 of file error.c.
Referenced by rb_async_bug_errno().
Definition at line 530 of file error.c.
Referenced by rb_async_bug_errno().
anonymous enum |
Definition at line 346 of file error.c.
References fileno, len, msg, and strchr().
Referenced by bug_report_file(), postscript_dump(), and preface_dump().
Definition at line 418 of file error.c.
References buf, preface_dump(), REPORT_BUG_BUFSIZ, ruby_description, snprintf, and vsnprintf.
|
static |
Definition at line 438 of file error.c.
References bug_reporters_size, bug_reporters::data, bug_reporters::func, postscript_dump(), and REPORTBUG_MSG.
Referenced by rb_assert_failure().
Definition at line 330 of file error.c.
References buf, bug_important_message(), err_position_0(), FUNC_MINIMIZED(), len, msg, NULL, and REPORT_BUG_BUFSIZ.
Definition at line 619 of file error.c.
References FIXNUM_P, NIL_P, NULL, RB_TYPE_P, SYMBOL_P, T_FALSE, and T_TRUE.
Referenced by rb_builtin_class_name(), rb_check_typeddata(), and unexpected_type().
|
static |
Definition at line 472 of file error.c.
Referenced by rb_assert_failure(), rb_bug(), and rb_bug_context().
|
static |
|
static |
Definition at line 90 of file error.c.
References rb_str_cat2(), rb_str_catf(), and rb_str_vcatf().
Referenced by rb_syntax_error_append(), and warn_vsprintf().
Definition at line 950 of file error.c.
References id_bt, rb_attr_get(), rb_backtrace_p(), and rb_backtrace_to_str_ary().
Referenced by exc_equal(), Init_Exception(), and rb_get_backtrace().
Definition at line 994 of file error.c.
References id_bt_locations, NIL_P, rb_attr_get(), and rb_backtrace_to_location_ary().
Referenced by Init_Exception().
Definition at line 1080 of file error.c.
References exc_backtrace(), id_mesg, Qfalse, Qnil, Qtrue, Qundef, rb_attr_get(), rb_check_funcall(), rb_equal(), rb_obj_class(), rb_protect(), rb_set_errinfo(), and try_convert_to_exception().
Referenced by Init_Exception().
Definition at line 849 of file error.c.
References exc_initialize(), and rb_obj_clone().
Referenced by Init_Exception().
Definition at line 824 of file error.c.
References id_bt, id_mesg, Qnil, rb_ivar_set(), and rb_scan_args().
Referenced by exc_exception(), and Init_Exception().
Definition at line 900 of file error.c.
References CLASS_OF, rb_class_name(), rb_obj_as_string(), rb_str_buf_append(), rb_str_buf_cat(), rb_str_buf_new2(), rb_str_dup(), and RSTRING_LEN.
Referenced by Init_Exception().
Definition at line 1038 of file error.c.
References id_bt, rb_check_backtrace(), and rb_ivar_set().
Referenced by Init_Exception(), and rb_exc_set_backtrace().
Definition at line 870 of file error.c.
References CLASS_OF, NIL_P, rb_attr_get(), rb_class_name(), and rb_String().
Referenced by Init_Exception().
Definition at line 1125 of file error.c.
References argc, argv, EXIT_FAILURE, EXIT_SUCCESS, id_status, INT2FIX, NIL_P, Qfalse, Qtrue, rb_call_super(), rb_check_to_int(), and rb_ivar_set().
Referenced by Init_Exception().
Definition at line 1175 of file error.c.
References id_status, and rb_attr_get().
Referenced by Init_Exception().
Definition at line 1189 of file error.c.
References EXIT_SUCCESS, id_status, NIL_P, NUM2INT, Qfalse, Qtrue, rb_attr_get(), WEXITSTATUS, and WIFEXITED.
Referenced by Init_Exception().
FUNC_MINIMIZED | ( | static void | bug_important_messageFILE *out, const char *const msg, size_t len | ) |
Referenced by bug_report_file().
|
static |
Definition at line 1603 of file error.c.
References name, set_syserr(), snprintf, st_data_t, and st_lookup.
Referenced by rb_sys_fail_str(), and rb_syserr_new_str().
void Init_Exception | ( | void | ) |
Definition at line 2101 of file error.c.
References exc_backtrace(), exc_backtrace_locations(), exc_cause(), exc_equal(), exc_exception(), exc_initialize(), exc_inspect(), exc_message(), exc_set_backtrace(), exc_to_s(), exit_initialize(), exit_status(), exit_success_p(), id_warn, name_err_initialize(), name_err_local_variables(), name_err_mesg_dump(), name_err_mesg_equal(), name_err_mesg_load(), name_err_mesg_to_str(), name_err_name(), name_err_receiver(), nometh_err_args(), nometh_err_initialize(), nometh_err_private_call_p(), Qfalse, rb_attr(), rb_cData, rb_cEncoding, rb_class_new_instance(), rb_cObject, rb_define_class(), rb_define_class_under(), rb_define_global_function(), rb_define_method(), rb_define_module(), rb_define_singleton_method(), rb_extend_object(), rb_intern_const, rb_make_internal_id(), rb_mWarning, rb_warn_m(), rb_warning_s_warn(), st_init_numtable, syntax_error_initialize(), syserr_eqq(), syserr_errno(), and syserr_initialize().
void Init_syserr | ( | void | ) |
Definition at line 2504 of file error.c.
References set_syserr().
Definition at line 2274 of file error.c.
References errno, rb_bug(), and rb_syserr_new().
Referenced by rb_mod_sys_fail(), and rb_sys_fail().
Definition at line 2286 of file error.c.
References errno, NIL_P, Qnil, rb_bug(), rb_syserr_new_str(), and RSTRING_PTR.
Referenced by rb_mod_sys_fail_str(), and rb_sys_fail_str().
Definition at line 1243 of file error.c.
References rb_thread_struct::cfp, GET_THREAD, rb_control_frame_struct::iseq, name, Qnil, rb_call_super(), rb_iseqw_new(), rb_ivar_set(), rb_vm_get_ruby_level_next_cfp(), and RUBY_VM_PREVIOUS_CONTROL_FRAME.
Referenced by Init_Exception(), and nometh_err_initialize().
Definition at line 1285 of file error.c.
References NIL_P, rb_ary_new(), rb_attr_get(), rb_iseqw_local_variables(), and rb_ivar_set().
Referenced by Init_Exception().
Definition at line 1453 of file error.c.
References name_err_mesg_to_str().
Referenced by Init_Exception().
Definition at line 1379 of file error.c.
References NAME_ERR_MESG_COUNT, Qfalse, Qtrue, rb_equal(), rb_obj_class(), and TypedData_Get_Struct.
Referenced by Init_Exception().
Definition at line 1460 of file error.c.
Referenced by Init_Exception().
|
static |
Definition at line 1328 of file error.c.
References NAME_ERR_MESG_COUNT, and rb_gc_mark_locations().
|
static |
Definition at line 1337 of file error.c.
References NAME_ERR_MESG_COUNT.
Definition at line 1399 of file error.c.
References CLASS_OF, FAKE_CSTR, NAME_ERR_MESG__MESG, NAME_ERR_MESG__NAME, NAME_ERR_MESG__RECV, NIL_P, Qfalse, Qnil, Qtrue, QUOTE, rb_any_to_s(), rb_class_name(), rb_inspect(), rb_obj_as_string(), rb_protect(), rb_set_errinfo(), rb_str_format(), rb_usascii_encoding(), RSTRING_LEN, RSTRING_PTR, and TypedData_Get_Struct.
Referenced by Init_Exception(), and name_err_mesg_dump().
Definition at line 1473 of file error.c.
References DATA_PTR, id_mesg, NAME_ERR_MESG__RECV, RString::ptr, Qundef, rb_attr_get(), rb_ivar_lookup(), rb_raise(), and rb_typeddata_is_kind_of().
Referenced by Init_Exception().
Definition at line 1309 of file error.c.
References name_err_initialize(), Qfalse, Qnil, Qtrue, rb_ivar_set(), and RTEST.
Referenced by Init_Exception().
NORETURN | ( | static void | dievoid | ) |
Referenced by rb_builtin_class_name(), and rb_raise().
NORETURN | ( | static void | unexpected_typeVALUE, int, int | ) |
NORETURN | ( | static void | raise_loaderrorVALUE path, VALUE mesg | ) |
|
static |
Definition at line 396 of file error.c.
References bug_important_message(), msg, and NULL.
Referenced by bug_report_end().
|
static |
Definition at line 371 of file error.c.
References bug_important_message(), msg, and NULL.
Referenced by bug_report_begin_valist(), and rb_assert_failure().
Definition at line 2221 of file error.c.
References err, rb_exc_new3, rb_exc_raise(), and rb_ivar_set().
Referenced by rb_load_fail(), rb_loaderror(), rb_loaderror_with_path(), and rb_raise().
Definition at line 564 of file error.c.
References bug_report_end(), die(), NULL, preface_dump(), rb_vm_bugreport(), and ruby_description.
void rb_async_bug_errno | ( | const char * | mesg, |
int | errno_arg | ||
) |
Definition at line 534 of file error.c.
References rb_strerrno(), REPORTBUG_MSG, ruby_description, strlen(), WRITE_CONST, and write_or_abort.
Referenced by close_unless_reserved().
void rb_bug | ( | const char * | fmt, |
... | |||
) |
Definition at line 482 of file error.c.
References die(), GET_THREAD, NULL, rb_source_loc(), and report_bug.
Referenced by add_opt_method(), backtrace_collect(), BigDecimalCmp(), catch_type(), check_cref(), check_env_value(), check_match(), check_method_entry(), check_rvalue_consistency(), classname(), cont_free(), cont_restore_thread(), cref_replace_with_duplicated_cref_each_frame(), def_iseq_ptr(), dump_node(), econv_convert(), econv_finish(), encodes(), exception_type2symbol(), fiber_store(), filter_defined_class(), frame2iseq(), gc_finalize_deferred_register(), gc_grey(), gc_mark_children(), gc_mark_roots(), gc_mark_stacked_objects(), gc_marks_finish(), gc_mode_name(), gc_mode_verify(), gc_page_sweep(), gc_prof_setup_new_record(), gc_verify_heap_page(), gc_verify_internal_consistency(), gc_writebarrier_generational(), get_dyna_var_idx(), get_local_var_idx(), glob_helper(), heap_page_add_freeobj(), heap_page_allocate(), ibf_dump_object_class(), ibf_dump_object_struct(), ibf_dump_object_unsupported(), ibf_dump_overwrite(), ibf_load_object_class(), ibf_load_object_unsupported(), id2key(), invalidate_mark_stack(), iseq_calc_param_size(), iseq_data_to_ary(), iseq_set_sequence(), location_absolute_path(), location_base_label(), location_label(), location_lineno(), location_path(), location_to_str(), lookup_str_id(), make_errno_exc(), make_errno_exc_str(), method_callable_method_entry(), method_entry_get_without_cache(), method_type_name(), mustbe_callable(), mutex_free(), negate_lit(), newobj_init(), newobj_slowpath(), obj_free(), obj_memsize_of(), objspace_malloc_increase(), pack_pack(), parser_compile_error(), power_cache_get_power(), rb_ary_set_len(), rb_bug_errno(), rb_check_deadlock(), rb_check_type(), rb_class_clear_method_cache(), rb_econv_open_opts(), rb_enc_from_encoding_index(), rb_fiber_start(), rb_fiddle_handle_initialize(), rb_fiddle_ptr_aref(), rb_fiddle_ptr_aset(), rb_fiddle_ptr_s_malloc(), rb_fiddle_ptr_to_s(), rb_fiddle_ptr_to_str(), rb_fix2str(), rb_fix_detect_o_cloexec(), rb_gc_writebarrier(), rb_hash_method_definition(), rb_insn_operand_intern(), rb_iseq_translate_threaded_code(), rb_maygvl_fd_fix_cloexec(), rb_memsearch_ss(), rb_method_definition_eq(), rb_method_entry_min_max_arity(), rb_obj_freeze(), rb_objspace_free(), rb_postponed_job_register(), rb_postponed_job_register_one(), rb_readwrite_syserr_fail(), rb_str_set_len(), rb_struct_eql(), rb_struct_equal(), rb_sys_fail_str(), rb_thread_call_with_gvl(), rb_thread_terminate_all(), rb_threadptr_unlock_all_locking_mutexes(), rb_tracearg_object(), rb_tracearg_raised_exception(), rb_tracearg_return_value(), rb_trans_conv(), rb_unexpected_type(), rb_update_max_fd(), rb_vm_env_write(), rb_vm_get_cref(), rb_vmdebug_stack_dump_th(), rb_yield_refine_block(), reachable_object_from_root_i(), rgengc_remember(), rsock_detect_cloexec(), rsock_s_recvfrom(), rsock_s_recvfrom_nonblock(), ruby_node_name(), RVALUE_AGE_INC(), singleton_class_of(), sym_check_asciionly(), symbols_i(), tbl_assert(), thread_free(), thread_join(), thread_start_func_2(), type2sym(), unregister_sym(), verify_list(), vm_base_ptr(), vm_call0(), vm_call0_body(), vm_call0_cfunc_with_frame(), vm_call_cfunc_with_frame(), vm_call_method(), vm_call_method_each_type(), vm_call_super(), vm_call_super_method(), vm_cref_replace_with_duplicated_cref(), vm_defined(), vm_exec_core(), vm_get_cvar_base(), vm_getspecial(), vm_init_redefined_flag(), vm_make_proc_with_iseq(), vm_method_cfunc_entry(), vm_stackoverflow(), vm_throw_start(), VpDivd(), vtable_add(), vtable_pop(), and warn_unused_var().
Definition at line 497 of file error.c.
References die(), GET_THREAD, NULL, rb_source_loc(), and report_bug.
void rb_bug_errno | ( | const char * | mesg, |
int | errno_arg | ||
) |
Definition at line 513 of file error.c.
References rb_bug(), rb_strerrno(), and strerror().
int rb_bug_reporter_add | ( | void(*)(FILE *, void *) | func, |
void * | data | ||
) |
Definition at line 314 of file error.c.
References bug_reporters_size, bug_reporters::data, bug_reporters::func, and MAX_BUG_REPORTERS.
Referenced by trace_object_allocations(), and trace_object_allocations_debug_start().
Definition at line 645 of file error.c.
References builtin_class_name(), NORETURN(), rb_obj_classname(), and unexpected_type().
Referenced by enum_to_h_i(), lookup_str_id(), rb_hash_s_create(), rb_obj_clone2(), rb_sym2id(), and sym_check_asciionly().
const char* rb_builtin_type_name | ( | int | t | ) |
Definition at line 609 of file error.c.
References name, and numberof.
Referenced by compile_dstr_fragments(), unexpected_type(), and w_object().
Definition at line 1006 of file error.c.
References err, NIL_P, RARRAY_AREF, RARRAY_LEN, rb_ary_new3, rb_backtrace_p(), rb_raise(), RB_TYPE_P, T_ARRAY, and T_STRING.
Referenced by exc_set_backtrace(), and rb_get_backtrace().
Definition at line 2490 of file error.c.
References FL_ABLE, FL_TAINT, PRIsVALUE, rb_check_frozen_internal, rb_raise(), rb_safe_level(), and RBASIC.
Referenced by random_init(), and random_load().
void rb_check_frozen | ( | VALUE | obj | ) |
Definition at line 2473 of file error.c.
References rb_check_frozen_internal.
void rb_check_trusted | ( | VALUE | obj | ) |
Definition at line 2485 of file error.c.
Referenced by d_lite_initialize_copy(), d_lite_marshal_load(), nurat_marshal_load(), rb_obj_init_copy(), rb_struct_modify(), and time_modify().
void rb_check_type | ( | VALUE | x, |
int | t | ||
) |
Definition at line 685 of file error.c.
References Qundef, rb_bug(), RTYPEDDATA_P, T_DATA, TYPE, UNDEF_LEAKED, and unexpected_type().
void* rb_check_typeddata | ( | VALUE | obj, |
const rb_data_type_t * | data_type | ||
) |
Definition at line 730 of file error.c.
References builtin_class_name(), DATA_PTR, PRIsVALUE, rb_eTypeError, rb_obj_class(), rb_raise(), RB_TYPE_P, rb_typeddata_inherited_p(), RTYPEDDATA_P, RTYPEDDATA_TYPE, T_DATA, and rb_data_type_struct::wrap_struct_name.
Referenced by BigDecimal_initialize(), BigDecimal_initialize_copy(), check_addrinfo(), check_strscan(), dir_get(), dir_open_dir(), econv_init(), initialize_params(), lexer_i(), lexer_iter(), and reduce0().
Definition at line 138 of file error.c.
References ONLY_FOR_INTERNAL_USE.
void rb_compile_error_append | ( | const char * | fmt, |
... | |||
) |
Definition at line 144 of file error.c.
References ONLY_FOR_INTERNAL_USE.
Definition at line 132 of file error.c.
References ONLY_FOR_INTERNAL_USE.
Definition at line 181 of file error.c.
References NIL_P, NULL, rb_write_warning_str(), ruby_verbose, and warn_vsprintf().
Referenced by const_tbl_update(), onig_syntax_warn(), parser_warn(), remove_duplicate_keys(), and vm_respond_to().
Definition at line 196 of file error.c.
References NULL, rb_write_warning_str(), RTEST, ruby_verbose, and warn_vsprintf().
Referenced by parser_get_bool(), parser_warning(), rb_method_entry_make(), and when_vals().
void rb_enc_raise | ( | rb_encoding * | enc, |
VALUE | exc, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 2194 of file error.c.
References rb_enc_vsprintf(), rb_exc_new3, and rb_exc_raise().
Referenced by check_name_arg(), name_to_backref_number(), rb_file_expand_path_internal(), and rb_str_format().
void rb_enc_warn | ( | rb_encoding * | enc, |
const char * | fmt, | ||
... | |||
) |
Definition at line 235 of file error.c.
References NIL_P, rb_write_warning_str(), ruby_verbose, and warning_string().
Referenced by parse_mode_enc(), and unsupported_encoding().
void rb_error_frozen | ( | const char * | what | ) |
Definition at line 2447 of file error.c.
References rb_raise().
Referenced by fdbm_modify(), rb_frozen_class_p(), rb_gdbm_modify(), rb_thread_local_aset(), and rb_thread_variable_set().
void rb_error_frozen_object | ( | VALUE | frozen_obj | ) |
Definition at line 2453 of file error.c.
References CLASS_OF, id_debug_created_info, NIL_P, PRIsVALUE, rb_ary_entry(), rb_attr_get(), and rb_raise().
Definition at line 797 of file error.c.
References rb_funcall(), and rb_str_new().
Referenced by rb_exc_new_cstr(), rb_threadptr_raise(), and setup_exception().
Definition at line 803 of file error.c.
References rb_exc_new(), and strlen().
Referenced by exc_setup_cause().
Definition at line 809 of file error.c.
References rb_funcall(), and StringValue.
Referenced by feature_option(), ole_raise(), raise_from_check(), raise_zlib_error(), rb_econv_init_by_convpath(), rb_file_expand_path_internal(), rb_keyword_error_new(), and unexpected_type().
Definition at line 1044 of file error.c.
References exc_set_backtrace().
Referenced by raise_argument_error(), and set_backtrace().
void rb_fatal | ( | const char * | fmt, |
... | |||
) |
Definition at line 2261 of file error.c.
References rb_exc_fatal(), rb_exc_new3, and rb_vsprintf().
Referenced by argf_next_argv(), dedent_string(), dln_load(), iseq_catch_table_bytes(), proc_options(), rb_id_serial_to_id(), rb_scan_args(), rb_w32_asynchronize(), ruby_init_loadpath_safe(), ruby_only_for_internal_use(), StartSockets(), and VpException().
Definition at line 965 of file error.c.
References CLASS_OF, exc_backtrace(), EXEC_EVENT_HOOK, GET_THREAD, id_backtrace, NIL_P, Qnil, Qundef, rb_check_backtrace(), rb_eException, rb_funcall(), rb_method_basic_definition_p(), RUBY_EVENT_C_CALL, and RUBY_EVENT_C_RETURN.
Referenced by adjust_backtrace_in_eval(), errat_getter(), rb_threadptr_error_print(), and setup_exception().
Definition at line 1509 of file error.c.
References PRIsVALUE, rb_raise(), and rb_str_new2.
Referenced by rb_cstr_to_dbl(), and rb_cstr_to_inum().
Definition at line 2350 of file iseq.c.
References iseqw_check(), and rb_iseq_local_variables().
Referenced by name_err_local_variables().
Definition at line 754 of file iseq.c.
Referenced by iseq_compile_each(), name_err_initialize(), and rb_debug_inspector_frame_iseq_get().
Definition at line 2438 of file error.c.
References raise_loaderror(), rb_str_append(), rb_str_buf_new_cstr(), and rb_str_cat2().
Referenced by load_failed(), and open_load_file().
void rb_loaderror | ( | const char * | fmt, |
... | |||
) |
Definition at line 2229 of file error.c.
References Qnil, raise_loaderror(), rb_enc_vsprintf(), and rb_locale_encoding().
Referenced by dln_load(), load_file_internal(), must_encindex(), and rb_f_require_relative().
Definition at line 2241 of file error.c.
References raise_loaderror(), rb_enc_vsprintf(), and rb_locale_encoding().
Definition at line 2366 of file error.c.
References make_errno_exc(), rb_exc_raise(), and rb_extend_object().
Definition at line 2374 of file error.c.
References make_errno_exc_str(), rb_exc_raise(), and rb_extend_object().
Referenced by rb_readwrite_syserr_fail().
Definition at line 2382 of file error.c.
References rb_exc_raise(), rb_extend_object(), and rb_syserr_new().
Definition at line 2390 of file error.c.
References rb_exc_raise(), rb_extend_object(), and rb_syserr_new_str().
Definition at line 1354 of file error.c.
References ALLOC_N, NAME_ERR_MESG__MESG, NAME_ERR_MESG__NAME, NAME_ERR_MESG__RECV, NAME_ERR_MESG_COUNT, result, RTYPEDDATA_DATA, and TypedData_Wrap_Struct.
Referenced by make_no_method_exception(), and rb_name_err_new().
Definition at line 1367 of file error.c.
References id_bt, id_mesg, Qnil, rb_ivar_set(), rb_name_err_mesg_new(), and rb_obj_alloc().
Definition at line 1204 of file error.c.
References argv, ID2SYM, rb_class_new_instance(), rb_exc_raise(), and rb_vsprintf().
Referenced by num_funcall_op_0(), num_funcall_op_1_recursion(), rb_f_untrace_var(), rb_gvar_readonly_setter(), and rb_id_attrset().
Definition at line 1219 of file error.c.
References argv, rb_class_new_instance(), rb_exc_raise(), and rb_vsprintf().
Referenced by rb_f_untrace_var(), and rb_id_attrset().
void rb_notimplement | ( | void | ) |
Definition at line 2253 of file error.c.
References PRIsVALUE, rb_frame_this_func(), rb_id2str, and rb_raise().
Referenced by flock(), p_gid_change_privilege(), p_gid_exchange(), p_uid_change_privilege(), p_uid_exchange(), pipe_open(), proc_exec_cmd(), proc_exec_sh(), proc_getegid(), proc_geteuid(), proc_getgid(), proc_getuid(), rb_f_notimplement(), rb_io_set_sync(), rb_remove_history(), rb_setegid_core(), rb_seteuid_core(), refined_method_callable_without_refinement(), sock_s_unpack_sockaddr_in(), and strio_unimpl().
Definition at line 2207 of file error.c.
References NORETURN(), raise_loaderror(), rb_exc_new3, rb_exc_raise(), and rb_vsprintf().
Referenced by addrinfo_initialize(), addrinfo_ip_address(), addrinfo_ip_port(), addrinfo_ip_unpack(), addrinfo_ipv4_multicast_p(), addrinfo_list_new(), addrinfo_mdump(), addrinfo_mload(), advice_arg_check(), algo_init(), alloc_event_hook(), argf_fileno(), argf_rewind(), argf_seek_m(), argf_set_encoding(), argf_set_pos(), argf_tell(), argf_write_io(), ary2safe_array_index(), ary_ensure_room_for_push(), ary_ensure_room_for_unshift(), ary_join_1(), ary_new(), ary_new_dim(), ary_take_first_or_last(), big2str_alloc(), big2str_base_poweroftwo(), big2str_generic(), big2ulong(), big_shift2(), big_shift3(), BigDecimal_DoDivmod(), BigDecimal_limit(), BigDecimal_load(), BigDecimal_mode(), BigDecimal_new(), BigDecimal_power(), BigDecimal_to_i(), BigMath_s_exp(), BigMath_s_log(), bsock_shutdown(), bubblebabble_str_new(), call_getaddrinfo(), check_autoload_required(), check_case_options(), check_dump_arg(), check_econv(), check_exec_env_i(), check_exec_fds(), check_exec_fds_1(), check_exec_options_i(), check_exec_redirect(), check_exec_redirect_fd(), check_getline_args(), check_gid_switch(), check_load_arg(), check_match(), check_modifiable(), check_next_arg(), check_path_encoding(), check_pos_arg(), check_rounding_mode(), check_rounding_mode_option(), check_step_domain(), check_type_val2variant(), check_uid_switch(), check_userdump_arg(), check_ushort(), chunk_ii(), class2path(), class_init_copy_check(), class_or_module_required(), closed_dbm(), closed_sdbm(), cmp_clamp(), coerce_failed(), combinate0(), console_beep(), console_echo_p(), constant_arg(), cont_restore_thread(), conversion_mismatch(), convert_type(), convert_UTF8_to_JSON(), convert_UTF8_to_JSON_ASCII(), copy_stream_body(), copy_stream_fallback(), copy_stream_finalize(), count_objects(), cParser_initialize(), cState_init_copy(), d_lite_initialize_copy(), d_lite_marshal_load(), d_lite_rshift(), d_lite_step(), d_new_by_frags(), date_s__parse_internal(), date_s__strptime_internal(), date_s_civil(), date_s_commercial(), date_s_ordinal(), date_strftime_internal(), datetime_s_civil(), datetime_s_commercial(), datetime_s_jd(), datetime_s_ordinal(), dbl2big(), dir_closed(), dir_s_chdir(), divmodv(), do_coerce(), do_writeconv(), dt_new_by_frags(), dump_disasm_list(), dump_output(), econv_convert(), econv_get_replacement(), econv_init(), econv_insert_output(), econv_opts(), econv_primitive_convert(), econv_set_replacement(), emit(), enc_check_duplication(), enc_inspect(), enc_str_scrub(), ensure_class_or_module(), ensure_includable(), enum_drop(), enum_each_cons(), enum_each_cons_size(), enum_each_slice(), enum_each_slice_size(), enum_slice_after(), enum_sort_by(), enum_take(), enum_to_h_i(), enum_zip(), enumerator_feed(), enumerator_init(), enumerator_init_copy(), enumerator_ptr(), env_fetch(), errat_setter(), errinfo_getter(), esignal_init(), etc_getgrgid(), etc_getgrnam(), etc_getpwnam(), etc_getpwuid(), ev_advise(), ev_on_event(), eval_string_with_cref(), exec_recursive(), expect_numeric(), extract_binmode(), extract_user_token(), f_round_common(), failed_load_conv51932(), fdbm_clear(), fdbm_delete(), fdbm_delete_if(), fdbm_fetch_m(), fdbm_store(), fev_off_event(), fgdbm_clear(), fgdbm_fetch_m(), fgdbm_initialize(), fgdbm_set_cachesize(), fgdbm_set_fastmode(), fgdbm_set_syncmode(), fgdbm_store(), fiber_switch(), fiber_t_alloc(), fiddle_handle_sym(), file_inspect_join(), flatten(), fole_initialize(), fole_method_help(), fole_missing(), fole_query_interface(), fole_respond_to(), fole_s_connect(), fole_s_const_load(), fole_s_create_guid(), fole_s_set_locale(), fole_s_show_help(), fole_type(), fole_typelib(), folemethod_initialize(), foleparam_initialize(), folerecord_initialize(), folerecord_method_missing(), folerecord_ole_instance_variable_get(), folerecord_ole_instance_variable_set(), foletype_initialize(), foletypelib_initialize(), folevariant_ary_aref(), folevariant_ary_aset(), folevariant_initialize(), folevariant_s_array(), folevariant_set_value(), forbid_setid(), frame_get(), fsdbm_clear(), fsdbm_delete(), fsdbm_delete_if(), fsdbm_fetch_m(), fsdbm_store(), function_call(), gc_info_decode(), gc_latest_gc_info(), gc_stat(), gc_stat_internal(), generate_json_array(), generate_json_float(), generate_json_object(), generator_init(), generator_init_copy(), generator_initialize(), generator_ptr(), generic_to_value(), get_addrinfo(), get_array(), get_device_once(), get_digest_base_metadata(), get_env_cstr(), get_exception_sym2type(), get_gzfile(), get_hash(), get_locked_safe_array(), get_new_timeval(), get_num(), get_power2(), get_stat(), get_strio(), get_strpath(), get_timeval(), get_trace_arg(), get_zstream(), GetPositiveInt(), GetVpValueWithPrec(), gzfile_check_footer(), gzfile_fill(), gzfile_read_header(), gzfile_read_more(), gzfile_read_raw_ensure(), gzfile_read_raw_until_zero(), gzfile_readpartial(), handle_interrupt_arg_check_i(), hash2named_arg(), hash_foreach_call(), hash_foreach_iter(), hexencode_str_new(), hist_delete_at(), hist_get(), host_str(), ibf_dump_code(), ibf_load_code(), ibf_load_object(), ibf_load_setup(), id2ref(), init_addrinfo(), init_copy(), Init_ossl_locks(), initialize(), initialize_params(), insn_data_to_s_detail(), int_chr(), int_neg_p(), int_param(), int_pos_p(), int_to_f(), int_to_ffi_type(), integer_to_bnptr(), intern_str(), invalid_argument(), invalid_integer(), invalid_radix(), invalid_struct_pos(), io_getc(), io_getpartial(), io_needed(), io_read(), io_read_nonblock(), io_readlines(), io_reopen(), io_ungetbyte(), is_popen_fork(), iseq_build_from_ary_body(), iseq_build_from_ary_exception(), iseq_build_kw(), iseq_build_load_iseq(), iseq_ibf_dump(), iseq_load(), iseqw_check(), iv_index_tbl_extend(), JSON_parse_array(), JSON_parse_object(), lazy_drop(), lazy_drop_while(), lazy_flat_map(), lazy_initialize(), lazy_map(), lazy_reject(), lazy_select(), lazy_take(), lazy_take_while(), lazy_zip(), lexer_i(), long_toobig(), make_addrinfo(), make_clock_result(), make_compile_option(), make_exception(), match_backref_number(), match_begin(), match_check(), match_end(), match_offset(), mod_using(), mSyslog_close(), mSyslog_log(), mSyslog_open(), mSyslog_set_mask(), must_be_ascii_compatible(), must_be_module(), must_encindex(), must_not_be_anonymous(), must_not_null(), must_respond_to(), mustbe_callable(), mustnot_broken(), mustnot_wchar(), name_err_receiver(), name_to_backref_error(), negative_size_allocation_error(), negative_size_allocation_error_with_gvl(), nmin_block_cmp(), nmin_cmp(), no_dig_method(), no_new_key(), not_encoding(), nucomp_coerce(), nucomp_marshal_load(), nucomp_rationalize(), nucomp_real_check(), nucomp_s_convert(), nucomp_to_f(), nucomp_to_i(), nucomp_to_r(), num_exact(), num_init_copy(), num_members(), num_sadded(), num_step_scan_args(), numeric_to_float(), nurat_coerce(), nurat_int_check(), nurat_marshal_load(), nurat_s_convert(), obj2ubits(), obj_random_bytes(), objspace_internal_super_of(), old_to_new(), ole_cp2encoding(), ole_create_dcom(), ole_invoke(), ole_invoke2(), ole_rec2variant(), ole_set_byref(), ole_set_safe_array(), ole_val2olevariantdata(), ole_val2variant_err(), ole_val_ary2variant_ary(), ole_variant2val(), ole_vstr2wc(), oleparam_ole_param_from_index(), onigenc_single_byte_code_to_mbc(), open_key_args(), opt_enc_index(), pack_pack(), pack_unpack_internal(), parse_keyword_arg_i(), parse_main(), parser_compile_error(), path2class(), path_initialize(), permute0(), port_str(), prepare_readline(), proc_binding(), proc_new(), proc_options(), queue_do_pop(), r_object0(), r_symbol(), r_symlink(), racc_yyparse(), raise_closed_queue_error(), raise_method_missing(), random_load(), range_bsearch(), range_each(), range_failed(), range_loader(), range_max(), range_step(), rb_add_method_cfunc(), rb_alias(), rb_alias_variable(), rb_alloc_tmp_buffer(), rb_ary_bsearch_index(), rb_ary_drop(), rb_ary_fetch(), rb_ary_fill(), rb_ary_initialize(), rb_ary_product(), rb_ary_resize(), rb_ary_sample(), rb_ary_set_len(), rb_ary_shuffle_bang(), rb_ary_splice(), rb_ary_store(), rb_ary_take(), rb_ary_times(), rb_ary_to_h(), rb_ary_transpose(), rb_autoload(), rb_autoload_str(), rb_big2long(), rb_big2str1(), rb_big2ulong(), rb_big_mul_karatsuba(), rb_big_mul_toom3(), rb_block_arity(), rb_block_lambda(), rb_block_min_max_arity(), rb_check_argv(), rb_check_backtrace(), rb_check_copyable(), rb_check_id(), rb_check_inheritable(), rb_check_lockedtmp(), rb_check_symbol(), rb_check_typeddata(), rb_class_inherited_p(), rb_class_initialize(), rb_class_superclass(), rb_cmperr(), rb_const_set(), rb_cont_call(), rb_convert_to_integer(), rb_coverage_peek_result(), rb_cstr_to_dbl(), rb_cstr_to_rat(), rb_current_receiver(), rb_declare_transcoder(), rb_default_home_dir(), rb_define_class(), rb_define_class_id_under(), rb_define_module(), rb_define_module_id_under(), rb_digest_base_alloc(), rb_digest_base_copy(), rb_digest_class_s_digest(), rb_digest_instance_method_unimpl(), rb_econv_append(), rb_econv_init_by_convpath(), rb_econv_prepare_options(), rb_enc_associate_index(), rb_enc_check(), rb_enc_check_str(), rb_enc_codelen(), rb_enc_codepoint_len(), rb_enc_find_index(), rb_enc_register(), rb_enc_set_default_external(), rb_enc_str_new_cstr(), rb_enc_uint_chr(), rb_enc_vsprintf(), rb_eof_error(), rb_error_frozen(), rb_error_frozen_object(), rb_execarg_addopt(), rb_f_at_exit(), rb_f_autoload(), rb_f_kill(), rb_f_raise(), rb_f_test(), rb_f_trace_var(), rb_fiber_resume(), rb_fiddle_handle_close(), rb_fiddle_handle_initialize(), rb_fiddle_handle_sym(), rb_fiddle_ptr2cptr(), rb_fiddle_ptr_aref(), rb_fiddle_ptr_aset(), rb_fiddle_ptr_s_to_ptr(), rb_file_expand_path_internal(), rb_file_initialize(), rb_file_join(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_fix2str(), rb_fix_digits(), rb_fs_setter(), rb_gdbm_delete(), rb_gdbm_fatal(), rb_gzfile_set_comment(), rb_gzfile_set_mtime(), rb_gzfile_set_orig_name(), rb_gzreader_read(), rb_gzreader_readbyte(), rb_gzreader_readchar(), rb_gzreader_readline(), rb_gzreader_readpartial(), rb_Hash(), rb_hash_fetch_m(), rb_hash_rehash(), rb_hash_s_create(), rb_hash_set_default_proc(), rb_home_dir_of(), rb_include_module(), rb_insecure_operation(), rb_int_cmp(), rb_int_digits(), rb_int_digits_bigbase(), rb_integer_unpack(), rb_interrupt(), rb_invalid_str(), rb_io_check_byte_readable(), rb_io_check_char_readable(), rb_io_check_closed(), rb_io_check_initialized(), rb_io_check_writable(), rb_io_close_read(), rb_io_close_write(), rb_io_each_codepoint(), rb_io_each_line(), rb_io_extract_modeenc(), rb_io_fmode_modestr(), rb_io_initialize(), rb_io_modestr_fmode(), rb_io_oflags_modestr(), rb_io_reopen(), rb_io_s_popen(), rb_io_sysread(), rb_io_sysseek(), rb_io_ungetc(), rb_io_wait_readable(), rb_io_wait_writable(), rb_iseq_build_from_ary(), rb_iseqw_line_trace_specify(), rb_lambda_call(), rb_marshal_define_compat(), rb_marshal_load_with_proc(), rb_method_call_with_block(), rb_mod_const_defined(), rb_mod_const_get(), rb_mod_define_method(), rb_mod_ge(), rb_mod_modfunc(), rb_mod_refine(), rb_must_asciicompat(), rb_mutex_lock(), rb_mutex_synchronize_m(), rb_mutex_unlock(), rb_nkf_convert(), rb_nmin_run(), rb_notimplement(), rb_num2dbl(), rb_num2fix(), rb_num2long(), rb_num2ulong(), rb_num2ulong_internal(), rb_num_get_rounding_option(), rb_num_zerodiv(), rb_obj_alloc(), rb_obj_clone2(), rb_obj_encoding(), rb_obj_init_copy(), rb_out_of_short(), rb_path_to_class(), rb_prepend_module(), rb_provide_feature(), rb_random_real(), rb_random_ulong_limited(), rb_range_beg_len(), rb_reg_check(), rb_reg_initialize(), rb_reg_prepare_enc(), rb_reg_prepare_re0(), rb_reg_preprocess_dregexp(), rb_reg_raise(), rb_reg_regsub(), rb_reg_s_union(), rb_register_transcoder(), rb_search_method_entry(), rb_secure(), rb_set_errinfo(), rb_set_safe_level(), rb_str_ascii_casemap(), rb_str_aset(), rb_str_casemap(), rb_str_cat(), rb_str_cat_conv_enc_opts(), rb_str_check_dummy_enc(), rb_str_concat(), rb_str_crypt(), rb_str_dump(), rb_str_ellipsize(), rb_str_format(), rb_str_index_m(), rb_str_justify(), rb_str_match(), rb_str_modify_expand(), rb_str_plus(), rb_str_resize(), rb_str_rindex_m(), rb_str_rpartition(), rb_str_set_len(), rb_str_setbyte(), rb_str_setter(), rb_str_split_m(), rb_str_sub_bang(), rb_str_subpat_set(), rb_str_times(), rb_str_to_dbl(), rb_str_to_i(), rb_str_unlocktmp(), rb_str_update(), rb_string_value_cstr(), rb_struct_init_copy(), rb_struct_initialize_m(), rb_struct_members(), rb_struct_s_def(), rb_struct_s_members(), rb_sym2id(), rb_sym_proc_call(), rb_szqueue_initialize(), rb_szqueue_max_set(), rb_szqueue_push(), rb_thread_pending_interrupt_p(), rb_thread_s_handle_interrupt(), rb_thread_setname(), rb_thread_shield_waiting_dec(), rb_thread_shield_waiting_inc(), rb_thread_stop(), rb_thread_wait_fd_rw(), rb_thread_wakeup(), rb_threadptr_pending_interrupt_check_mask(), rb_time_new(), rb_time_timespec_new(), rb_tracearg_object(), rb_tracearg_raised_exception(), rb_tracearg_return_value(), rb_undef(), rb_undefined_alloc(), rb_uv_to_utf8(), rb_vm_cbase(), rb_vm_ifunc_new(), rb_vm_make_binding(), rb_yield_splat(), rcombinate0(), readable(), readline_attempted_completion_function(), recursive_join(), reduce0(), refine_sym_proc_call(), reg_enc_error(), remain_size(), return_fiber(), ripper_token2eventid(), rollback_ensure_stack(), rpermute0(), rscheck(), rsock_getaddrinfo(), rsock_io_socket_addrinfo(), rsock_ipaddr(), rsock_raise_socket_error(), rsock_revlookup_flag(), rsock_s_recvfrom(), rsock_s_recvfrom_nonblock(), ruby__sfvextra(), ruby__sfvwrite(), RUBY_ALIAS_FUNCTION(), ruby_malloc_size_overflow(), ruby_sized_xrealloc2(), safe_setter(), security(), send_internal(), set_arg0(), set_ole_codepage(), set_option_encoding_once(), set_proc_default(), set_trace_func(), setup_hash(), setup_narg(), should_be_callable(), should_be_finalizable(), sig_trap(), singleton_class_of(), sock_s_gethostbyaddr(), sock_s_getnameinfo(), sock_s_getservbyname(), sock_s_getservbyport(), sock_s_unpack_sockaddr_in(), sock_sockaddr(), sockopt_ipv4_multicast_loop(), sockopt_ipv4_multicast_ttl(), sockopt_linger(), sort_by_cmp(), sort_by_i(), sort_reentered(), st_foreach_safe(), start_document(), str_buf_cat(), str_compat_and_valid(), str_find_encindex(), str_gsub(), str_mod_check(), str_new0(), str_new_static(), str_to_encindex(), str_transcode0(), strftime_cstr(), string_for_symbol(), string_to_c_strict(), string_to_r(), string_to_r_strict(), strio_close_read(), strio_close_write(), strio_each(), strio_extend(), strio_read(), strio_readlines(), strio_seek(), strio_size(), strscan_do_scan(), strscan_set_pos(), strscan_unscan(), struct_make_members_list(), struct_member_pos(), sym_check_asciionly(), symbol2event_flag(), syserr_initialize(), syslog_write(), take_items(), thgroup_add(), thread_add_trace_func(), thread_create_core(), thread_initialize(), thread_join(), thread_s_new(), thread_shield_get_mutex(), threadptr_check_pending_interrupt_queue(), time_fixoff(), time_gmtime(), time_localtime(), time_mdump(), time_mload(), time_overflow_p(), time_plus(), time_round(), time_strftime(), time_timespec(), timegmw(), timelocalw(), timew2timespec(), too_short(), top_using(), tracepoint_new_s(), transcode_loop(), transcode_restartable0(), trap_handler(), trap_signm(), trnext(), umethod_bind(), undumpable(), unknown_keyword_error(), update_i(), uscore_get(), using_module_recursive(), utc_offset_arg(), utf8_to_uv(), val2variant_ptr(), validate_enc_binmode(), validate_integer_pack_format(), validate_utc_offset(), validate_vtm(), value_to_generic(), value_to_id(), vm_backtrace_to_ary(), vm_call_opt_send(), vm_check_if_namespace(), vm_define_method(), vm_get_cvar_base(), vm_respond_to(), vm_search_super_method(), vm_set_top_stack(), vm_setivar(), vm_stat(), vm_super_outside(), vm_to_proc(), VpAlloc(), VpException(), w_extended(), w_long(), w_object(), w_symbol(), wait_mode_sym(), with_gvl_callback(), writable(), wv2timet(), yielder_init(), yielder_ptr(), and zlib_gunzip().
Definition at line 558 of file error.c.
References NULL, report_bug_valist, and RSTRING_PTR.
Referenced by compile_bug().
|
static |
Definition at line 65 of file error.c.
References NULL.
Referenced by rb_async_bug_errno(), and rb_bug_errno().
VALUE rb_syntax_error_append | ( | VALUE | exc, |
VALUE | file, | ||
int | line, | ||
int | column, | ||
rb_encoding * | enc, | ||
const char * | fmt, | ||
va_list | args | ||
) |
Definition at line 104 of file error.c.
References err_vcatf(), proc_entry::fn, NIL_P, NULL, rb_attr_get(), rb_class_new_instance(), rb_enc_str_new(), rb_eSyntaxError, rb_str_cat2(), rb_str_cat_cstr(), rb_write_error_str(), RSTRING_END, RSTRING_LEN, and RSTRING_PTR.
Referenced by append_compile_error(), and parser_compile_error().
void rb_sys_enc_warning | ( | rb_encoding * | enc, |
const char * | fmt, | ||
... | |||
) |
Definition at line 2418 of file error.c.
References errno, rb_str_catf(), rb_str_set_len(), rb_write_warning_str(), RSTRING_LEN, RTEST, ruby_verbose, strerror(), and warning_string().
Referenced by sys_warning_1().
void rb_sys_fail | ( | const char * | mesg | ) |
Definition at line 2326 of file error.c.
References make_errno_exc(), and rb_exc_raise().
Referenced by bsock_getpeername(), bsock_getsockname(), bsock_local_address(), bsock_remote_address(), bsock_shutdown(), check_gid_switch(), console_beep(), console_echo_p(), console_iflush(), console_ioflush(), console_oflush(), console_set_cooked(), console_set_echo(), console_set_raw(), copy_stream_body(), date_s_today(), date_strftime_alloc(), datetime_s_now(), dir_inspect(), establishShell(), etc_getlogin(), etc_systmpdir(), fdbm_store(), fgdbm_store(), flush_before_seek(), fsdbm_store(), initialize(), io_reopen(), io_write_nonblock(), ip_addr(), ip_peeraddr(), is_socket(), make_fd_nonblock(), mustbe_callable(), ossl_ssl_read_internal(), ossl_ssl_write_internal(), ossl_start_ssl(), p_gid_change_privilege(), p_gid_exchange(), p_uid_change_privilege(), p_uid_exchange(), proc_getegid(), proc_geteuid(), proc_getgid(), proc_getuid(), proc_wait(), pty_getpty(), raise_zlib_error(), rb_clock_getres(), rb_clock_gettime(), rb_exec_async_signal_safe(), rb_exec_fail(), rb_f_kill(), rb_f_sleep(), rb_f_system(), rb_io_check_char_readable(), rb_io_flush_raw(), rb_io_initialize(), rb_io_reopen(), rb_io_s_pipe(), rb_io_set_sync(), rb_io_sync(), rb_setegid_core(), rb_seteuid_core(), rb_str_crypt(), rb_thread_wait_fd_rw(), rb_timespec_now(), readline_s_set_input(), readline_s_set_output(), remain_size(), rsock_bsock_send(), rsock_fd_socket_addrinfo(), rsock_s_recvfrom(), rsock_sock_listen(), ruby_getcwd(), ruby_kill(), select_internal(), sock_initialize(), sock_s_unpack_sockaddr_in(), udp_init(), and wait_for_single_fd().
void rb_sys_fail_str | ( | VALUE | mesg | ) |
Definition at line 2332 of file error.c.
References errno, get_syserr(), make_errno_exc_str(), NIL_P, Qnil, rb_bug(), rb_class_new_instance(), rb_exc_raise(), rb_str_new_cstr(), and RSTRING_PTR.
Referenced by fdbm_initialize(), fgdbm_initialize(), fsdbm_initialize(), pipe_open(), rb_exec_fail(), ruby_setenv(), and trap().
void rb_sys_warning | ( | const char * | fmt, |
... | |||
) |
Definition at line 2398 of file error.c.
References errno, rb_str_catf(), rb_str_set_len(), rb_write_warning_str(), RSTRING_LEN, RTEST, ruby_verbose, strerror(), and warning_string().
void rb_syserr_fail | ( | int | e, |
const char * | mesg | ||
) |
Definition at line 2314 of file error.c.
References rb_exc_raise(), and rb_syserr_new().
Referenced by check_gid_switch(), console_beep(), console_echo_p(), copy_stream_finalize(), dir_read(), init_inetsock_internal(), mustbe_callable(), p_gid_change_privilege(), p_gid_have_saved_id(), p_gid_switch(), p_uid_change_privilege(), p_uid_have_saved_id(), p_uid_switch(), pipe_open(), proc_waitall(), rb_clock_getres(), rb_clock_gettime(), rb_exec_async_signal_safe(), rb_fdopen(), readline_s_set_input(), readline_s_set_output(), rsock_init_sock(), rsock_raise_socket_error(), rsock_s_accept(), rsock_s_accept_nonblock(), rsock_s_recvfrom_nonblock(), rsock_syserr_fail_path(), ruby_dup(), ruby_getcwd(), sock_s_unpack_sockaddr_in(), sock_sysaccept(), strio_init(), and ttymode().
void rb_syserr_fail_str | ( | int | e, |
VALUE | mesg | ||
) |
Definition at line 2320 of file error.c.
References rb_exc_raise(), and rb_syserr_new_str().
Referenced by buffer_size_check(), envix(), pipe_open(), rb_execarg_parent_start1(), rb_f_exec(), rb_f_spawn(), rsock_syserr_fail_host_port(), rsock_syserr_fail_path(), and rsock_syserr_fail_raddrinfo().
Definition at line 2300 of file error.c.
References Qnil, rb_str_new2, and rb_syserr_new_str().
Referenced by make_errno_exc(), rb_mod_syserr_fail(), and rb_syserr_fail().
Definition at line 2308 of file error.c.
References get_syserr(), and rb_class_new_instance().
Referenced by make_errno_exc_str(), rb_mod_syserr_fail_str(), rb_syserr_fail_str(), and rb_syserr_new().
int rb_typeddata_inherited_p | ( | const rb_data_type_t * | child, |
const rb_data_type_t * | parent | ||
) |
Definition at line 710 of file error.c.
References rb_data_type_struct::parent.
Referenced by rb_check_typeddata(), and rb_typeddata_is_kind_of().
int rb_typeddata_is_kind_of | ( | VALUE | obj, |
const rb_data_type_t * | data_type | ||
) |
Definition at line 720 of file error.c.
References RB_TYPE_P, rb_typeddata_inherited_p(), RTYPEDDATA_P, RTYPEDDATA_TYPE, and T_DATA.
Referenced by econv_equal(), is_kind_of_BigDecimal(), name_err_receiver(), objspace_internal_class_of(), objspace_internal_super_of(), rb_backtrace_p(), rb_obj_is_fiber(), rb_obj_is_method(), rb_obj_is_mutex(), rb_obj_is_proc(), rb_obj_is_thread(), reachable_objects_from(), and try_get_rnd().
void rb_unexpected_type | ( | VALUE | x, |
int | t | ||
) |
Definition at line 700 of file error.c.
References Qundef, rb_bug(), TYPE, UNDEF_LEAKED, and unexpected_type().
void rb_warn | ( | const char * | fmt, |
... | |||
) |
Definition at line 221 of file error.c.
References NIL_P, rb_write_warning_str(), ruby_verbose, and warning_string().
Referenced by argf_bytes(), argf_chars(), argf_codepoints(), argf_lines(), argf_next_argv(), compat_key(), const_tbl_update(), curry(), debug_option(), dir_s_chdir(), do_coerce(), dump_option(), enum_count(), enum_find_index(), enumerator_initialize(), env_fetch(), env_index(), fdbm_index(), feature_option(), fgdbm_index(), find_encoding(), fsdbm_index(), generator_initialize(), ignorecase_getter(), ignorecase_setter(), ignored_block(), Init_continuation(), kcode_getter(), kcode_setter(), list_id_table_foreach_values(), new_struct(), nucomp_expt(), nurat_expt(), onig_syntax_warn(), ossl_cipher_init(), ossl_clear_error(), ossl_sslctx_setup(), ossl_verify_cb_call(), path_check_0(), proc_new(), rb_ary_count(), rb_ary_fetch(), rb_ary_index(), rb_ary_initialize(), rb_ary_rindex(), rb_big_pow(), rb_const_search(), rb_const_warn_if_deprecated(), rb_define_const(), rb_enc_find_index(), rb_execarg_run_options(), rb_fdopen(), rb_gzreader_bytes(), rb_gzreader_lines(), rb_hash_fetch_m(), rb_hash_index(), rb_hash_reject(), rb_hash_s_create(), rb_io_bytes(), rb_io_chars(), rb_io_codepoints(), rb_io_extract_encoding_option(), rb_io_lines(), rb_io_reopen(), rb_io_s_new(), rb_io_sysseek(), rb_io_syswrite(), rb_marshal_load_with_proc(), rb_method_entry_make(), rb_reg_initialize_m(), rb_reg_prepare_enc(), rb_str_enumerate_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), rb_str_enumerate_lines(), rb_str_format(), rb_time_succ(), rb_undef(), re_warn(), register_init_ext(), remove_method(), ruby_gc_set_params(), strio_bytes(), strio_chars(), strio_codepoints(), strio_lines(), strio_s_new(), vm_ensure_not_refinement_module(), vm_get_cvar_base(), vm_respond_to(), VpCtoV(), and warn_cr_in_shebang().
Definition at line 296 of file error.c.
References NIL_P, Qnil, rb_io_puts(), rb_stderr, and ruby_verbose.
Referenced by Init_Exception().
void rb_warning | ( | const char * | fmt, |
... | |||
) |
Definition at line 250 of file error.c.
References rb_write_warning_str(), RTEST, ruby_verbose, and warning_string().
Referenced by asn1time_to_time(), call_verify_certificate_identity(), d_new_by_frags(), datetime_s_now(), dt_new_by_frags(), enum_inject(), Init_ossl_hmac(), load_lock(), offset_to_sec(), old_to_new(), ossl_engine_s_load(), ossl_pem_passwd_cb(), ossl_ssl_read_internal(), ossl_ssl_write_internal(), ossl_sslctx_get_ciphers(), ossl_sslctx_setup(), pack_pack(), pack_unpack_internal(), process_options(), rb_ary_initialize(), rb_attr(), rb_big2dbl(), rb_cstr_to_dbl(), rb_cvar_get(), rb_cvar_set(), rb_deflate_params(), rb_dir_exists_p(), rb_enable_super(), rb_file_exists_p(), rb_gvar_undef_getter(), rb_ivar_get(), rb_method_entry_make(), rb_mod_attr(), rb_obj_trust(), rb_obj_untrust(), rb_obj_untrusted(), rb_str_enumerate_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), rb_str_enumerate_lines(), set_const_visibility(), set_default_external(), set_default_internal(), set_method_visibility(), strscan_clear(), strscan_empty_p(), strscan_getbyte(), strscan_peep(), strscan_restsize(), time_strftime(), top_define_method(), top_include(), vm_getivar(), and zstream_end().
Definition at line 157 of file error.c.
References Check_Type, Qnil, rb_must_asciicompat(), rb_write_error_str(), and T_STRING.
Referenced by Init_Exception().
|
static |
Definition at line 166 of file error.c.
References id_warn, rb_funcall(), and rb_mWarning.
Referenced by rb_compile_warn(), rb_compile_warning(), rb_enc_warn(), rb_sys_enc_warning(), rb_sys_warning(), rb_warn(), and rb_warning().
void ruby_only_for_internal_use | ( | const char * | func | ) |
Definition at line 150 of file error.c.
References rb_fatal(), and rb_print_backtrace().
Definition at line 1569 of file error.c.
References EINPROGRESS, EWOULDBLOCK, INT2NUM, rb_define_class_under(), rb_define_const(), rb_eEAGAIN, rb_eEINPROGRESS, rb_eEWOULDBLOCK, st_add_direct, st_data_t, and st_lookup.
Referenced by get_syserr(), and Init_syserr().
Definition at line 1524 of file error.c.
References rb_call_super(), and rb_fstring_cstr().
Referenced by Init_Exception().
Definition at line 1696 of file error.c.
References FIXNUM_P, NIL_P, Qfalse, Qtrue, rb_attr_get(), rb_const_get(), rb_equal(), rb_funcallv, rb_obj_is_kind_of(), and rb_respond_to().
Referenced by Init_Exception().
Definition at line 1628 of file error.c.
References bug_reporters::data, err, FIXNUM_P, bug_reporters::func, NIL_P, NUM2INT, NUM2LONG, OBJ_INFECT, PRIsVALUE, Qnil, rb_call_super(), rb_const_get(), rb_enc_str_new_cstr(), rb_ivar_set(), rb_locale_encoding(), rb_obj_class(), rb_raise(), rb_scan_args(), rb_str_catf(), RB_TYPE_P, RBASIC_SET_CLASS, st_data_t, st_lookup, strerror(), StringValue, and T_OBJECT.
Referenced by Init_Exception().
|
static |
Definition at line 659 of file error.c.
References builtin_class_name(), PRIsVALUE, rb_builtin_type_name(), rb_eFatal, rb_eTypeError, rb_exc_new_str(), rb_exc_raise(), rb_obj_class(), rb_sprintf(), and T_MASK.
Referenced by rb_builtin_class_name(), rb_check_type(), and rb_unexpected_type().
|
static |
Definition at line 172 of file error.c.
References err_vcatf(), rb_enc_str_new(), and rb_str_cat2().
Referenced by rb_compile_warn(), rb_compile_warning(), and warning_string().
|
static |
Definition at line 210 of file error.c.
References NIL_P, NULL, rb_source_location(), RSTRING_PTR, and warn_vsprintf().
Referenced by rb_enc_warn(), rb_sys_enc_warning(), rb_sys_warning(), rb_warn(), and rb_warning().
|
static |
|
static |
Definition at line 311 of file error.c.
Referenced by bug_report_end(), and rb_bug_reporter_add().
|
static |
Definition at line 784 of file error.c.
Referenced by rb_get_backtrace().
|
static |
Definition at line 51 of file error.c.
Referenced by Init_Exception(), and rb_write_warning_str().
|
static |
VALUE rb_eArgError |
Definition at line 763 of file error.c.
Referenced by addrinfo_list_new(), argf_fileno(), argf_rewind(), argf_seek_m(), argf_set_encoding(), argf_set_pos(), argf_tell(), ary2safe_array_index(), ary_join_1(), ary_new(), ary_take_first_or_last(), big2str_alloc(), big2str_base_poweroftwo(), big_shift3(), BigDecimal_limit(), BigDecimal_mode(), BigDecimal_new(), BigMath_s_exp(), BigMath_s_log(), bsock_shutdown(), check_autoload_required(), check_case_options(), check_exec_env_i(), check_exec_fds(), check_exec_fds_1(), check_exec_options_i(), check_exec_redirect(), check_exec_redirect_fd(), check_getline_args(), check_gid_switch(), check_name_arg(), check_next_arg(), check_pos_arg(), check_rounding_mode(), check_rounding_mode_option(), check_step_domain(), cmp_clamp(), console_beep(), console_echo_p(), copy_stream_fallback(), cParser_initialize(), cState_init_copy(), d_lite_initialize_copy(), d_lite_marshal_load(), d_lite_rshift(), d_lite_step(), d_new_by_frags(), date_s__parse_internal(), date_s__strptime_internal(), date_s_civil(), date_s_commercial(), date_s_ordinal(), date_strftime_internal(), datetime_s_civil(), datetime_s_commercial(), datetime_s_jd(), datetime_s_ordinal(), dir_s_chdir(), do_writeconv(), dt_new_by_frags(), dump_output(), econv_convert(), econv_insert_output(), econv_opts(), econv_primitive_convert(), enc_check_duplication(), enc_str_scrub(), ensure_includable(), enum_drop(), enum_each_cons(), enum_each_cons_size(), enum_each_slice(), enum_each_slice_size(), enum_slice_after(), enum_take(), enum_to_h_i(), enumerator_init(), enumerator_init_copy(), enumerator_ptr(), errat_setter(), esignal_init(), etc_getgrgid(), etc_getgrnam(), etc_getpwnam(), etc_getpwuid(), extract_binmode(), extract_user_token(), file_inspect_join(), flatten(), folerecord_initialize(), folevariant_initialize(), frame_get(), gc_info_decode(), gc_stat_internal(), generator_init(), generator_init_copy(), generator_ptr(), get_env_cstr(), get_hash(), get_num(), GetCipherPtr(), GetPositiveInt(), GetPrivPKeyPtr(), GetVpValueWithPrec(), gzfile_fill(), gzfile_readpartial(), handle_interrupt_arg_check_i(), host_str(), init_addrinfo(), Init_vm_eval(), invalid_argument(), invalid_integer(), invalid_radix(), io_getpartial(), io_read(), io_read_nonblock(), io_readlines(), io_reopen(), iv_index_tbl_extend(), lazy_drop(), lazy_drop_while(), lazy_flat_map(), lazy_initialize(), lazy_map(), lazy_reject(), lazy_select(), lazy_take(), lazy_take_while(), lexer_i(), make_clock_result(), must_be_ascii_compatible(), must_be_module(), must_not_null(), mustbe_callable(), mustnot_broken(), mustnot_wchar(), nucomp_marshal_load(), num_step_scan_args(), nurat_marshal_load(), obj2ubits(), objspace_internal_super_of(), old_to_new(), open_key_args(), ossl_bn_initialize(), ossl_bn_to_s(), ossl_cipher_set_iv(), ossl_cipher_set_key(), ossl_cipher_update(), ossl_pkcs12_s_create(), ossl_pkcs7_initialize(), ossl_ssl_session_initialize(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_flush_sessions(), ossl_sslctx_set_ssl_version(), pack_pack(), pack_unpack_internal(), parse_keyword_arg_i(), parse_main(), parser_compile_error(), parser_set_encode(), path2class(), path_initialize(), port_str(), proc_binding(), proc_new(), r_object0(), r_symbol(), r_symlink(), racc_yyparse(), raise_method_missing(), random_load(), range_failed(), rb_add_method_cfunc(), rb_alloc_tmp_buffer(), rb_arity_error_new(), rb_ary_drop(), rb_ary_fill(), rb_ary_initialize(), rb_ary_sample(), rb_ary_take(), rb_ary_times(), rb_ary_to_h(), rb_autoload(), rb_autoload_str(), rb_big_mul_karatsuba(), rb_big_mul_toom3(), rb_block_arity(), rb_block_lambda(), rb_block_min_max_arity(), rb_check_argv(), rb_cmperr(), rb_convert_to_integer(), rb_cstr_to_dbl(), rb_declare_transcoder(), rb_default_home_dir(), rb_define_class(), rb_define_class_id_under(), rb_digest_class_s_digest(), rb_econv_append(), rb_econv_init_by_convpath(), rb_econv_prepare_options(), rb_enc_associate_index(), rb_enc_codelen(), rb_enc_codepoint_len(), rb_enc_find_index(), rb_enc_register(), rb_enc_set_default_external(), rb_enc_str_new_cstr(), rb_enc_vsprintf(), rb_execarg_addopt(), rb_f_at_exit(), rb_f_kill(), rb_f_raise(), rb_f_test(), rb_file_expand_path_internal(), rb_file_join(), rb_fix2str(), rb_fix_digits(), rb_gzreader_read(), rb_gzreader_readpartial(), rb_hash_s_create(), rb_home_dir_of(), rb_include_module(), rb_int_digits(), rb_int_digits_bigbase(), rb_integer_unpack(), rb_io_each_codepoint(), rb_io_each_line(), rb_io_extract_modeenc(), rb_io_fmode_modestr(), rb_io_initialize(), rb_io_modestr_fmode(), rb_io_oflags_modestr(), rb_io_reopen(), rb_io_s_popen(), rb_keyword_error_new(), rb_lambda_call(), rb_mod_const_defined(), rb_mod_const_get(), rb_mod_define_method(), rb_mod_refine(), rb_nkf_convert(), rb_nmin_run(), rb_num_get_rounding_option(), rb_obj_clone2(), rb_path_to_class(), rb_prepend_module(), rb_reg_prepare_enc(), rb_reg_prepare_re0(), rb_reg_preprocess_dregexp(), rb_reg_s_union(), rb_register_transcoder(), rb_set_safe_level(), rb_str_ascii_casemap(), rb_str_casemap(), rb_str_cat(), rb_str_crypt(), rb_str_format(), rb_str_justify(), rb_str_modify_expand(), rb_str_plus(), rb_str_resize(), rb_str_times(), rb_str_to_dbl(), rb_str_to_i(), rb_string_value_cstr(), rb_struct_initialize_m(), rb_struct_s_def(), rb_sym_proc_call(), rb_szqueue_initialize(), rb_szqueue_max_set(), rb_thread_s_handle_interrupt(), rb_thread_setname(), rb_time_timespec_new(), rb_yield_splat(), recursive_join(), refine_sym_proc_call(), rsock_ipaddr(), rsock_revlookup_flag(), RUBY_ALIAS_FUNCTION(), ruby_malloc_size_overflow(), ruby_sized_xrealloc2(), safe_setter(), send_internal(), setup_narg(), should_be_callable(), should_be_finalizable(), sig_trap(), sock_s_getnameinfo(), sock_s_unpack_sockaddr_in(), str_buf_cat(), str_compat_and_valid(), str_find_encindex(), str_new0(), str_new_static(), str_to_encindex(), str_transcode0(), strftime_cstr(), string_to_c_strict(), string_to_r_strict(), strio_each(), strio_extend(), strio_read(), strio_readlines(), struct_make_members_list(), symbol2event_flag(), syslog_write(), time_fixoff(), time_gmtime(), time_localtime(), time_mdump(), time_overflow_p(), time_round(), time_strftime(), time_timespec(), timegmw(), timelocalw(), timew2timespec(), too_short(), transcode_loop(), trap_handler(), trap_signm(), trnext(), unknown_keyword_error(), update_i(), utc_offset_arg(), utf8_to_uv(), validate_enc_binmode(), validate_integer_pack_format(), validate_utc_offset(), validate_vtm(), vm_backtrace_to_ary(), vm_call_opt_send(), vm_respond_to(), vm_setivar(), vm_stat(), VpAlloc(), w_object(), wait_mode_sym(), yielder_init(), and yielder_ptr().
VALUE rb_eEAGAIN |
Definition at line 46 of file error.c.
Referenced by Init_IO(), and set_syserr().
VALUE rb_eEINPROGRESS |
Definition at line 48 of file error.c.
Referenced by Init_IO(), and set_syserr().
VALUE rb_eEncCompatError |
Definition at line 769 of file error.c.
Referenced by check_path_encoding(), rb_enc_check(), rb_enc_check_str(), rb_must_asciicompat(), rb_str_check_dummy_enc(), rb_str_sub_bang(), reg_enc_error(), RUBY_ALIAS_FUNCTION(), and str_compat_and_valid().
VALUE rb_eEncodingError |
Definition at line 768 of file error.c.
Referenced by InitVM_transcode(), must_encindex(), and sym_check_asciionly().
VALUE rb_eEWOULDBLOCK |
Definition at line 47 of file error.c.
Referenced by Init_IO(), and set_syserr().
VALUE rb_eException |
Definition at line 755 of file error.c.
Referenced by errinfo_getter(), Init_eval_method(), Init_gdbm(), Init_Proc(), make_exception(), rb_get_backtrace(), and rb_set_errinfo().
VALUE rb_eFatal |
Definition at line 759 of file error.c.
Referenced by exc_setup_cause(), Init_eval(), rb_check_deadlock(), and unexpected_type().
VALUE rb_eIndexError |
Definition at line 764 of file error.c.
Referenced by ary_ensure_room_for_push(), ary_ensure_room_for_unshift(), fdbm_fetch_m(), fgdbm_fetch_m(), fsdbm_fetch_m(), hist_delete_at(), hist_get(), ibf_load_object(), InitVM_Enumerator(), invalid_struct_pos(), match_backref_number(), match_begin(), match_end(), match_offset(), name_to_backref_error(), name_to_backref_number(), oleparam_ole_param_from_index(), rb_ary_fetch(), rb_ary_resize(), rb_ary_splice(), rb_ary_store(), rb_ary_transpose(), rb_str_aset(), rb_str_cat_conv_enc_opts(), rb_str_ellipsize(), rb_str_setbyte(), rb_str_subpat_set(), rb_str_update(), and readline_attempted_completion_function().
VALUE rb_eInterrupt |
Definition at line 757 of file error.c.
Referenced by Init_signal(), and rb_interrupt().
VALUE rb_eKeyError |
Definition at line 765 of file error.c.
Referenced by env_fetch(), rb_hash_fetch_m(), and rb_str_format().
VALUE rb_eNameError |
Definition at line 767 of file error.c.
Referenced by process_sflag(), raise_method_missing(), and rb_autoload_str().
VALUE rb_eNoMemError |
Definition at line 773 of file error.c.
Referenced by Init_GC(), Init_ossl_locks(), negative_size_allocation_error(), and negative_size_allocation_error_with_gvl().
VALUE rb_eNoMethodError |
Definition at line 770 of file error.c.
Referenced by check_funcall_missing(), gzfile_read_raw(), gzfile_read_raw_rescue(), make_no_method_exception(), ole_invoke(), raise_method_missing(), send_internal(), vm_call_opt_send(), and vm_super_outside().
VALUE rb_eNotImpError |
Definition at line 772 of file error.c.
Referenced by advice_arg_check(), copy_stream_finalize(), int_to_f(), is_popen_fork(), ossl_sslctx_set_security_level(), rb_digest_base_alloc(), rb_execarg_addopt(), rb_int_cmp(), and rb_search_method_entry().
VALUE rb_eRangeError |
Definition at line 766 of file error.c.
Referenced by big2str_generic(), big2ulong(), big_shift2(), check_ushort(), id2ref(), Init_Numeric(), int_chr(), nucomp_rationalize(), nucomp_to_f(), nucomp_to_i(), nucomp_to_r(), obj_random_bytes(), onigenc_single_byte_code_to_mbc(), ossl_cipher_update(), pack_pack(), pack_unpack_internal(), rb_ary_product(), rb_big2long(), rb_big2str1(), rb_big2ulong(), rb_enc_uint_chr(), rb_file_expand_path_internal(), rb_num2fix(), rb_num2ulong(), rb_out_of_short(), rb_random_real(), rb_random_ulong_limited(), rb_range_beg_len(), rb_str_concat(), rb_time_new(), rb_uv_to_utf8(), rb_vm_ifunc_new(), sock_s_getservbyport(), strscan_set_pos(), time_overflow_p(), time_timespec(), and wv2timet().
VALUE rb_eRuntimeError |
Definition at line 761 of file error.c.
Referenced by algo_init(), ary2safe_array_index(), ary_new_dim(), bubblebabble_str_new(), check_dump_arg(), check_gid_switch(), check_load_arg(), check_uid_switch(), check_userdump_arg(), chunk_ii(), closed_dbm(), combinate0(), emit(), enum_sort_by(), errinfo_getter(), etc_getgrnam(), etc_getpwnam(), ev_advise(), eval_string_with_cref(), feature_option(), fiber_t_alloc(), flatten(), fole_each(), fole_method_help(), fole_missing(), fole_query_interface(), fole_s_const_load(), fole_s_create_guid(), fole_s_show_help(), fole_type(), fole_typelib(), folerecord_method_missing(), folevariant_ary_aset(), folevariant_s_array(), generic_to_value(), get_device_once(), get_digest_base_metadata(), get_locked_safe_array(), get_power2(), get_trace_arg(), GetDigestPtr(), hash_foreach_call(), hash_foreach_iter(), hexencode_str_new(), ibf_dump_code(), ibf_load_code(), ibf_load_setup(), Init_cparse(), Init_ossl_bn(), Init_ossl_locks(), Init_pty(), Init_win32ole_error(), initialize(), int_to_ffi_type(), intern_str(), iseq_ibf_dump(), make_exception(), mod_using(), mSyslog_close(), mSyslog_open(), mSyslog_set_mask(), nmin_block_cmp(), nmin_cmp(), no_new_key(), ole_create_dcom(), ole_initialize(), ole_invoke(), ole_rec2variant(), ole_set_safe_array(), ole_val2olevariantdata(), ole_val_ary2variant_ary(), ole_variant2val(), oleparam_ole_param_from_index(), opt_enc_index(), ossl_cipher_initialize(), pack_pack(), permute0(), pkey_new0(), proc_options(), rb_alias_variable(), rb_ary_product(), rb_ary_set_len(), rb_ary_shuffle_bang(), rb_check_lockedtmp(), rb_cont_call(), rb_coverage_peek_result(), rb_current_receiver(), rb_digest_instance_method_unimpl(), rb_file_initialize(), rb_hash_rehash(), rb_provide_feature(), rb_reg_regsub(), rb_str_dump(), rb_str_set_len(), rb_str_unlocktmp(), rb_thread_shield_waiting_dec(), rb_thread_shield_waiting_inc(), rb_threadptr_error_print(), rb_threadptr_raise(), rb_tracearg_object(), rb_tracearg_raised_exception(), rb_tracearg_return_value(), rb_vm_cbase(), rb_vm_make_binding(), rcombinate0(), ripper_token2eventid(), rollback_ensure_stack(), rpermute0(), rscheck(), ruby__sfvextra(), ruby__sfvwrite(), RUBY_ALIAS_FUNCTION(), set_arg0(), set_option_encoding_once(), setup_exception(), sort_by_cmp(), sort_by_i(), sort_reentered(), st_foreach_safe(), start_document(), str_gsub(), str_mod_check(), syslog_write(), top_using(), transcode_restartable0(), typeinfo_from_ole(), unlock_safe_array(), val2variant_ptr(), value_to_generic(), vm_search_super_method(), w_object(), and with_gvl_callback().
VALUE rb_eSecurityError |
Definition at line 771 of file error.c.
Referenced by ev_advise(), fole_initialize(), fole_s_connect(), forbid_setid(), function_call(), rb_f_trace_var(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_insecure_operation(), rb_reg_initialize(), rb_secure(), safe_setter(), security(), and sig_trap().
VALUE rb_eSignal |
Definition at line 758 of file error.c.
Referenced by error_handle(), Init_signal(), rb_threadptr_signal_raise(), and ruby_cleanup().
VALUE rb_eStandardError |
Definition at line 760 of file error.c.
Referenced by exp1(), ibf_dump_object_class(), ibf_load_object_class(), Init_Cont(), Init_dbm(), Init_fiddle(), Init_gdbm(), Init_IO(), Init_Numeric(), Init_openssl(), Init_ossl_asn1(), Init_ossl_bn(), Init_ossl_cipher(), Init_ossl_config(), Init_ossl_digest(), Init_ossl_engine(), Init_ossl_hmac(), Init_ossl_ns_spki(), Init_ossl_ocsp(), Init_ossl_pkcs12(), Init_ossl_pkcs5(), Init_ossl_pkcs7(), Init_ossl_pkey(), Init_ossl_rand(), Init_ossl_ssl(), Init_ossl_ssl_session(), Init_ossl_x509attr(), Init_ossl_x509cert(), Init_ossl_x509crl(), Init_ossl_x509ext(), Init_ossl_x509name(), Init_ossl_x509req(), Init_ossl_x509revoked(), Init_ossl_x509store(), Init_Proc(), Init_Regexp(), Init_sdbm(), Init_strscan(), Init_Thread(), Init_zlib(), iseq_compile_each(), rb_rescue(), and rsock_init_socket_init().
VALUE rb_eSyntaxError |
Definition at line 777 of file error.c.
Referenced by dump_disasm_list(), get_exception_sym2type(), insn_data_to_s_detail(), iseq_build_from_ary_body(), iseq_build_from_ary_exception(), iseq_build_load_iseq(), rb_syntax_error_append(), and yycompile0().
VALUE rb_eSystemCallError |
Definition at line 780 of file error.c.
Referenced by domain_error(), and rb_io_initialize().
VALUE rb_eSystemExit |
Definition at line 756 of file error.c.
Referenced by error_handle(), rb_exit(), rb_f_abort(), rb_threadptr_signal_exit(), ruby_cleanup(), setup_exception(), and thread_start_func_2().
VALUE rb_eTypeError |
Definition at line 762 of file error.c.
Referenced by addrinfo_initialize(), addrinfo_mload(), advice_arg_check(), alloc_event_hook(), asn1integer_to_num(), asn1time_to_time(), BigDecimal_load(), BigDecimal_mode(), BigDecimal_power(), check_econv(), check_match(), check_type_val2variant(), class2path(), class_init_copy_check(), class_or_module_required(), coerce_failed(), conversion_mismatch(), convert_type(), count_objects(), cParser_initialize(), d_lite_marshal_load(), divmodv(), do_coerce(), econv_init(), enc_inspect(), ensure_class_or_module(), enum_to_h_i(), enum_zip(), enumerator_feed(), enumerator_init_copy(), errinfo_getter(), ev_advise(), ev_on_event(), exec_recursive(), expect_numeric(), extract_user_token(), f_round_common(), fev_off_event(), fole_respond_to(), fole_s_const_load(), fole_s_show_help(), folemethod_initialize(), foleparam_initialize(), folerecord_ole_instance_variable_get(), folerecord_ole_instance_variable_set(), gc_info_decode(), gc_latest_gc_info(), gc_stat(), gc_stat_internal(), generator_initialize(), get_addrinfo(), get_array(), get_locked_safe_array(), get_new_timeval(), get_stat(), get_strpath(), get_timeval(), GetVpValueWithPrec(), hash2named_arg(), init_copy(), int_neg_p(), int_param(), int_pos_p(), io_needed(), iseq_build_from_ary_body(), iseq_build_kw(), iseq_load(), iseqw_check(), lazy_zip(), long_toobig(), make_compile_option(), make_exception(), match_check(), mSyslog_log(), must_not_be_anonymous(), must_respond_to(), no_dig_method(), not_encoding(), nucomp_coerce(), nucomp_real_check(), nucomp_s_convert(), num_exact(), num_init_copy(), num_members(), num_sadded(), num_step_scan_args(), num_to_asn1integer(), numeric_to_float(), nurat_coerce(), nurat_int_check(), nurat_s_convert(), obj_to_asn1bool(), ole_invoke(), ole_invoke2(), ossl_bn_coerce(), ossl_bn_value_ptr(), ossl_dh_new(), ossl_dsa_new(), ossl_pkey_initialize(), ossl_rsa_new(), pack_pack(), parser_compile_error(), r_object0(), range_bsearch(), range_each(), range_loader(), range_max(), range_step(), rb_alias(), rb_ary_bsearch_index(), rb_ary_to_h(), rb_check_id(), rb_check_inheritable(), rb_check_symbol(), rb_check_typeddata(), rb_class_inherited_p(), rb_class_initialize(), rb_class_superclass(), rb_const_set(), rb_convert_to_integer(), rb_define_class(), rb_define_class_id_under(), rb_define_module(), rb_define_module_id_under(), rb_digest_base_copy(), rb_f_autoload(), rb_fiddle_ptr2cptr(), rb_fs_setter(), rb_Hash(), rb_hash_set_default_proc(), rb_int_digits(), rb_iseq_build_from_ary(), rb_iseqw_line_trace_specify(), rb_marshal_define_compat(), rb_marshal_load_with_proc(), rb_method_call_with_block(), rb_mod_const_defined(), rb_mod_const_get(), rb_mod_define_method(), rb_mod_ge(), rb_mod_modfunc(), rb_num2dbl(), rb_num2fix(), rb_num2long(), rb_num2ulong_internal(), rb_obj_alloc(), rb_obj_encoding(), rb_obj_init_copy(), rb_path_to_class(), rb_reg_check(), rb_reg_initialize(), rb_set_errinfo(), rb_str_index_m(), rb_str_match(), rb_str_rindex_m(), rb_str_rpartition(), rb_str_setter(), rb_str_split_m(), rb_struct_init_copy(), rb_struct_members(), rb_struct_s_members(), rb_sym2id(), rb_thread_pending_interrupt_p(), rb_undef(), rb_undefined_alloc(), rsock_io_socket_addrinfo(), rsock_s_recvfrom(), set_proc_default(), set_trace_func(), setup_hash(), singleton_class_of(), sock_s_getnameinfo(), sock_s_unpack_sockaddr_in(), sockopt_ipv4_multicast_loop(), sockopt_ipv4_multicast_ttl(), sockopt_linger(), string_for_symbol(), struct_member_pos(), take_items(), thread_add_trace_func(), time_mload(), time_plus(), time_timespec(), umethod_bind(), undumpable(), unexpected_type(), uscore_get(), using_module_recursive(), value_to_id(), vm_check_if_namespace(), vm_define_method(), vm_get_cvar_base(), vm_search_super_method(), vm_set_top_stack(), vm_stat(), vm_to_proc(), w_extended(), w_long(), w_object(), and w_symbol().
VALUE rb_mErrno |
Definition at line 781 of file error.c.
Referenced by path_unlink().
VALUE rb_mWarning |
Definition at line 49 of file error.c.
Referenced by Init_Exception(), and rb_write_warning_str().
|
static |
Definition at line 55 of file error.c.
Referenced by bug_report_end(), and rb_async_bug_errno().
const char ruby_description[] |
Definition at line 33 of file version.c.
Referenced by bug_report_begin_valist(), rb_assert_failure(), and rb_async_bug_errno().