Ruby  2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
Data Structures | Macros | Enumerations | Functions | Variables
Exception handlings

Data Structures

struct  bug_reporters
 

Macros

#define EXIT_SUCCESS   0
 
#define WIFEXITED(status)   1
 
#define WEXITSTATUS(status)   (status)
 
#define with_warning_string(mesg, enc, fmt)
 
#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_cause   ruby_static_id_cause
 
#define id_bt   idBt
 
#define id_bt_locations   idBt_locations
 
#define id_mesg   idMesg
 
#define id_name   idName
 
#define frozen_err_receiver   name_err_receiver
 
#define name_err_mesg_free   RUBY_TYPED_DEFAULT_FREE
 

Enumerations

enum  {
  DBL_BIGDIG = ((DBL_MANT_DIG + BITSPERDIG) / BITSPERDIG), COROUTINE_REGISTERS = 6, COROUTINE_REGISTERS = 8, COROUTINE_REGISTERS = 0xb0 / 8,
  COROUTINE_REGISTERS, COROUTINE_REGISTERS = 4, COROUTINE_REGISTERS = 8, COROUTINE_XMM_REGISTERS = 1+10*2,
  COROUTINE_REGISTERS = 4, NAME_ERR_MESG__MESG, NAME_ERR_MESG__RECV, NAME_ERR_MESG__NAME,
  NAME_ERR_MESG_COUNT, raise_opt_cause, raise_max_opt, RAISED_EXCEPTION = 1,
  RAISED_STACKOVERFLOW = 2, RAISED_NOMEMORY = 4, DECIMAL_SIZE_OF_LONG = DECIMAL_SIZE_OF_BITS(CHAR_BIT*sizeof(long)), JISX0301_DATE_SIZE = DECIMAL_SIZE_OF_LONG+8,
  FLAG_RETURNS_128BITS = 1 << (31-31), FLAG_RETURNS_NOTHING = 1 << (31-30), FLAG_RETURNS_FP = 1 << (31-29), FLAG_RETURNS_64BITS = 1 << (31-28),
  FLAG_RETURNS_STRUCT = 1 << (31-27), FLAG_ARG_NEEDS_COPY = 1 << (31- 7), FLAG_FP_ARGUMENTS = 1 << (31- 6), FLAG_4_GPR_ARGUMENTS = 1 << (31- 5),
  FLAG_RETVAL_REFERENCE = 1 << (31- 4), FLAG_RETURNS_SMST = 1 << (31-31), FLAG_RETURNS_NOTHING = 1 << (31-30), FLAG_RETURNS_FP = 1 << (31-29),
  FLAG_RETURNS_64BITS = 1 << (31-28), FLAG_RETURNS_128BITS = 1 << (31-27), FLAG_COMPAT = 1 << (31- 8), FLAG_ARG_NEEDS_COPY = 1 << (31- 7),
  FLAG_ARG_NEEDS_PSAVE = FLAG_ARG_NEEDS_COPY, FLAG_FP_ARGUMENTS = 1 << (31- 6), FLAG_4_GPR_ARGUMENTS = 1 << (31- 5), FLAG_RETVAL_REFERENCE = 1 << (31- 4),
  JSON_object_start = 1, ossl_asn1_info_size = (sizeof(ossl_asn1_info)/sizeof(ossl_asn1_info[0])), tIGNORED_NL = tLAST_TOKEN + 1, tCOMMENT,
  tEMBDOC_BEG, tEMBDOC, tEMBDOC_END, tHEREDOC_BEG,
  tHEREDOC_END, k__END__, ORDINAL_PARAM = -1, NO_PARAM = 0,
  NUMPARAM_MAX = 9, BITS_SIZE = sizeof(bits_t), BITS_BITLENGTH = ( BITS_SIZE * CHAR_BIT ), RSTRUCT_EMBED_LEN_MAX = RVALUE_EMBED_LEN_MAX,
  RSTRUCT_EMBED_LEN_MASK = (RUBY_FL_USER2|RUBY_FL_USER1), RSTRUCT_EMBED_LEN_SHIFT = (RUBY_FL_USHIFT+1), RSTRUCT_TRANSIENT_FLAG = FL_USER3, RSTRUCT_ENUM_END,
  bom_prefix_len = (int)sizeof(bom_prefix) - 1, MT_MAX_STATE = N, PCH_NOT_READY, PCH_FAILED,
  PCH_SUCCESS, ORDINAL_PARAM = -1, NO_PARAM = 0, NUMPARAM_MAX = 9,
  COMPILATION_FEATURES, DEFAULT_FEATURES, LONGEST_SIGNAME = 7, LEFT,
  CHCASE, LOWER, UPPER, AREF_HASH_UNIT = 5,
  AREF_HASH_THRESHOLD = 10, TMOPT_IN, TMOPT_MAX_, CALLER_BINDING_SELF,
  CALLER_BINDING_CLASS, CALLER_BINDING_BINDING, CALLER_BINDING_ISEQ, CALLER_BINDING_CFP,
  VM_FRAME_MAGIC_METHOD = 0x11110001, VM_FRAME_MAGIC_BLOCK = 0x22220001, VM_FRAME_MAGIC_CLASS = 0x33330001, VM_FRAME_MAGIC_TOP = 0x44440001,
  VM_FRAME_MAGIC_CFUNC = 0x55550001, VM_FRAME_MAGIC_IFUNC = 0x66660001, VM_FRAME_MAGIC_EVAL = 0x77770001, VM_FRAME_MAGIC_RESCUE = 0x78880001,
  VM_FRAME_MAGIC_DUMMY = 0x79990001, VM_FRAME_MAGIC_MASK = 0x7fff0001, VM_FRAME_FLAG_PASSED = 0x0010, VM_FRAME_FLAG_FINISH = 0x0020,
  VM_FRAME_FLAG_BMETHOD = 0x0040, VM_FRAME_FLAG_CFRAME = 0x0080, VM_FRAME_FLAG_LAMBDA = 0x0100, VM_FRAME_FLAG_MODIFIED_BLOCK_PARAM = 0x0200,
  VM_FRAME_FLAG_CFRAME_KW = 0x0400, VM_FRAME_FLAG_CFRAME_EMPTY_KW = 0x0800, VM_ENV_FLAG_LOCAL = 0x0002, VM_ENV_FLAG_ESCAPED = 0x0004,
  VM_ENV_FLAG_WB_REQUIRED = 0x0008, MINIMUM_REPARSE_BUFFER_PATH_LEN = 4, SI_USER = 0, SI_ASYNCIO = 2,
  SI_MESGQ, SI_TIMER, SI_QUEUE, SI_KERNEL,
  ILL_ILLOPC = 7, ILL_ILLOPN, ILL_ILLADR, ILL_ILLTRP,
  ILL_PRVOPC, ILL_PRVREG, ILL_COPROC, ILL_BADSTK,
  FPE_INTDIV = 15, FPE_INTOVF, FPE_FLTDIV, FPE_FLTOVF,
  FPE_FLTUND, FPE_FLTRES, FPE_FLTINV, FPE_FLTSUB,
  SEGV_MAPERR = 23, SEGV_ACCERR, BUS_ADRALN = 25, BUS_ADRERR,
  BUS_OBJERR, CLD_EXITED = 28, CLD_KILLED, CLD_DUMPED,
  CLD_TRAPPED, CLD_STOPPED, CLD_CONTINUED
}
 

Functions

VALUE rb_iseqw_local_variables (VALUE iseqval)
 
VALUE rb_iseqw_new (const rb_iseq_t *)
 
int rb_str_end_with_asciichar (VALUE str, int c)
 
VALUE rb_syntax_error_append (VALUE exc, VALUE file, int line, int column, rb_encoding *enc, const char *fmt, va_list args)
 
rb_warning_category_t rb_warning_category_from_name (VALUE category)
 
void rb_warning_category_update (unsigned int mask, unsigned int bits)
 
MJIT_FUNC_EXPORTED bool rb_warning_category_enabled_p (rb_warning_category_t category)
 
void rb_compile_warn (const char *file, int line, const char *fmt,...)
 
void rb_compile_warning (const char *file, int line, const char *fmt,...)
 
void rb_warn (const char *fmt,...)
 
void rb_enc_warn (rb_encoding *enc, const char *fmt,...)
 
void rb_warning (const char *fmt,...)
 
VALUE rb_warning_string (const char *fmt,...)
 
void rb_warn_deprecated (const char *fmt, const char *suggest,...)
 
VALUE rb_ec_backtrace_location_ary (rb_execution_context_t *ec, long lev, long n)
 
int rb_bug_reporter_add (void(*func)(FILE *, void *), void *data)
 
 FUNC_MINIMIZED (static void bug_important_message(FILE *out, const char *const msg, size_t len))
 
 NORETURN (static void die(void))
 
void rb_bug (const char *fmt,...)
 
void rb_bug_for_fatal_signal (ruby_sighandler_t default_sighandler, int sig, const void *ctx, const char *fmt,...)
 
void rb_bug_errno (const char *mesg, int errno_arg)
 
void rb_async_bug_errno (const char *mesg, int errno_arg)
 
void rb_report_bug_valist (VALUE file, int line, const char *fmt, va_list args)
 
MJIT_FUNC_EXPORTED void rb_assert_failure (const char *file, int line, const char *name, const char *expr)
 
const charrb_builtin_type_name (int t)
 
const charrb_builtin_class_name (VALUE x)
 
 NORETURN (static void unexpected_type(VALUE, int, int))
 
void rb_check_type (VALUE x, int t)
 
void rb_unexpected_type (VALUE x, int t)
 
int rb_typeddata_inherited_p (const rb_data_type_t *child, const rb_data_type_t *parent)
 
int rb_typeddata_is_kind_of (VALUE obj, const rb_data_type_t *data_type)
 
int rb_typeddata_is_instance_of (VALUE obj, const rb_data_type_t *data_type)
 
voidrb_check_typeddata (VALUE obj, const rb_data_type_t *data_type)
 
VALUE rb_exc_new (VALUE etype, const char *ptr, long len)
 
VALUE rb_exc_new_cstr (VALUE etype, const char *s)
 
VALUE rb_exc_new_str (VALUE etype, VALUE str)
 
void rb_error_write (VALUE errinfo, VALUE emesg, VALUE errat, VALUE str, VALUE highlight, VALUE reverse)
 
VALUE rb_get_message (VALUE exc)
 
VALUE rb_get_backtrace (VALUE exc)
 
MJIT_FUNC_EXPORTED VALUE rb_exc_set_backtrace (VALUE exc, VALUE bt)
 
void rb_name_error (ID id, const char *fmt,...)
 
void rb_name_error_str (VALUE str, const char *fmt,...)
 
VALUE rb_name_err_new (VALUE mesg, VALUE recv, VALUE method)
 
VALUE rb_nomethod_err_new (VALUE mesg, VALUE recv, VALUE method, VALUE args, int priv)
 
void rb_invalid_str (const char *str, const char *type)
 
VALUE rb_key_err_new (VALUE mesg, VALUE recv, VALUE key)
 
void Init_Exception (void)
 
void rb_enc_raise (rb_encoding *enc, VALUE exc, const char *fmt,...)
 
void rb_vraise (VALUE exc, const char *fmt, va_list ap)
 
void rb_raise (VALUE exc, const char *fmt,...)
 
 NORETURN (static void raise_loaderror(VALUE path, VALUE mesg))
 
void rb_loaderror (const char *fmt,...)
 
void rb_loaderror_with_path (VALUE path, const char *fmt,...)
 
void rb_notimplement (void)
 
void rb_fatal (const char *fmt,...)
 
VALUE rb_syserr_new (int n, const char *mesg)
 
VALUE rb_syserr_new_str (int n, VALUE arg)
 
void rb_syserr_fail (int e, const char *mesg)
 
void rb_syserr_fail_str (int e, VALUE mesg)
 
void rb_sys_fail (const char *mesg)
 
void rb_sys_fail_str (VALUE mesg)
 
void rb_mod_sys_fail (VALUE mod, const char *mesg)
 
void rb_mod_sys_fail_str (VALUE mod, VALUE mesg)
 
void rb_mod_syserr_fail (VALUE mod, int e, const char *mesg)
 
void rb_mod_syserr_fail_str (VALUE mod, int e, VALUE mesg)
 
void rb_sys_warning (const char *fmt,...)
 
void rb_sys_enc_warning (rb_encoding *enc, const char *fmt,...)
 
void rb_syserr_enc_warning (int err, rb_encoding *enc, const char *fmt,...)
 
void rb_load_fail (VALUE path, const char *err)
 
void rb_error_frozen (const char *what)
 
void rb_frozen_error_raise (VALUE frozen_obj, const char *fmt,...)
 
void rb_error_frozen_object (VALUE frozen_obj)
 
void rb_check_frozen (VALUE obj)
 
void rb_error_untrusted (VALUE obj)
 
void rb_check_trusted (VALUE obj)
 
void rb_check_copyable (VALUE obj, VALUE orig)
 
void Init_syserr (void)
 
void Init_warning (void)
 
void rb_exc_raise (VALUE mesg)
 Raises an exception in the current thread. More...
 
void rb_exc_fatal (VALUE mesg)
 Raises a fatal error in the current thread. More...
 
void rb_interrupt (void)
 Raises an Interrupt exception. More...
 
VALUE rb_make_exception (int argc, const VALUE *argv)
 Make an Exception object from the list of arguments in a manner similar to Kernel#raise. More...
 
void rb_jump_tag (int tag)
 Continues the exception caught by rb_protect() and rb_eval_string_protect(). More...
 
VALUE rb_rescue2 (VALUE(*b_proc)(VALUE), VALUE data1, VALUE(*r_proc)(VALUE, VALUE), VALUE data2,...)
 An equivalent of rescue clause. More...
 
VALUE rb_rescue (VALUE(*b_proc)(VALUE), VALUE data1, VALUE(*r_proc)(VALUE, VALUE), VALUE data2)
 An equivalent of rescue clause. More...
 
VALUE rb_protect (VALUE(*proc)(VALUE), VALUE data, int *pstate)
 Protects a function call from potential global escapes from the function. More...
 
VALUE rb_ensure (VALUE(*b_proc)(VALUE), VALUE data1, VALUE(*e_proc)(VALUE), VALUE data2)
 An equivalent to ensure clause. More...
 
VALUE rb_errinfo (void)
 The current exception in the current thread. More...
 
void rb_set_errinfo (VALUE err)
 Sets the current exception ($!) to the given value. More...
 

Variables

VALUE rb_eEAGAIN
 
VALUE rb_eEWOULDBLOCK
 
VALUE rb_eEINPROGRESS
 
const char ruby_description []
 
VALUE rb_eException
 
VALUE rb_eSystemExit
 
VALUE rb_eInterrupt
 
VALUE rb_eSignal
 
VALUE rb_eFatal
 
VALUE rb_eStandardError
 
VALUE rb_eRuntimeError
 
VALUE rb_eFrozenError
 
VALUE rb_eTypeError
 
VALUE rb_eArgError
 
VALUE rb_eIndexError
 
VALUE rb_eKeyError
 
VALUE rb_eRangeError
 
VALUE rb_eNameError
 
VALUE rb_eEncodingError
 
VALUE rb_eEncCompatError
 
VALUE rb_eNoMethodError
 
VALUE rb_eSecurityError
 
VALUE rb_eNotImpError
 
VALUE rb_eNoMemError
 
VALUE rb_cNameErrorMesg
 
VALUE rb_eNoMatchingPatternError
 
VALUE rb_eScriptError
 
VALUE rb_eSyntaxError
 
VALUE rb_eLoadError
 
VALUE rb_eSystemCallError
 
VALUE rb_mErrno
 
ID ruby_static_id_cause
 

Detailed Description

Macro Definition Documentation

◆ bug_report_begin

#define bug_report_begin (   out,
  fmt 
)
Value:
do { \
va_list args; \
va_start(args, fmt); \
bug_report_begin_valist(out, fmt, args); \
va_end(args); \
} while (0)

Definition at line 585 of file error.c.

◆ EXIT_SUCCESS

#define EXIT_SUCCESS   0

Definition at line 39 of file error.c.

◆ frozen_err_receiver

#define frozen_err_receiver   name_err_receiver

Definition at line 1512 of file error.c.

◆ id_bt

#define id_bt   idBt

Definition at line 953 of file error.c.

◆ id_bt_locations

#define id_bt_locations   idBt_locations

Definition at line 954 of file error.c.

◆ id_cause

#define id_cause   ruby_static_id_cause

Definition at line 948 of file error.c.

◆ id_mesg

#define id_mesg   idMesg

Definition at line 955 of file error.c.

◆ id_name

#define id_name   idName

Definition at line 956 of file error.c.

◆ MAX_BUG_REPORTERS

#define MAX_BUG_REPORTERS   0x100

Definition at line 447 of file error.c.

◆ name_err_mesg_free

#define name_err_mesg_free   RUBY_TYPED_DEFAULT_FREE

Definition at line 1697 of file error.c.

◆ report_bug

#define report_bug (   file,
  line,
  fmt,
  ctx 
)
Value:
do { \
FILE *out = bug_report_file(file, line); \
if (out) { \
bug_report_begin(out, fmt); \
rb_vm_bugreport(ctx); \
bug_report_end(out); \
} \
} while (0) \

Definition at line 606 of file error.c.

◆ REPORT_BUG_BUFSIZ

#define REPORT_BUG_BUFSIZ   256

Definition at line 471 of file error.c.

◆ report_bug_valist

#define report_bug_valist (   file,
  line,
  fmt,
  ctx,
  args 
)
Value:
do { \
FILE *out = bug_report_file(file, line); \
if (out) { \
bug_report_begin_valist(out, fmt, args); \
rb_vm_bugreport(ctx); \
bug_report_end(out); \
} \
} while (0) \

Definition at line 615 of file error.c.

◆ UNDEF_LEAKED

#define UNDEF_LEAKED   "undef leaked to the Ruby space"

Definition at line 810 of file error.c.

◆ WEXITSTATUS

#define WEXITSTATUS (   status)    (status)

Definition at line 47 of file error.c.

◆ WIFEXITED

#define WIFEXITED (   status)    1

Definition at line 43 of file error.c.

◆ with_warning_string

#define with_warning_string (   mesg,
  enc,
  fmt 
)
Value:
VALUE mesg; \
va_list args; va_start(args, fmt); \
mesg = warning_string(enc, fmt, args); \
va_end(args);

Definition at line 308 of file error.c.

◆ WRITE_CONST

#define WRITE_CONST (   fd,
  str 
)    write_or_abort((fd),(str),sizeof(str) - 1)

Definition at line 687 of file error.c.

◆ write_or_abort

#define write_or_abort (   fd,
  str,
  len 
)    (write((fd), (str), (len)) < 0 ? abort() : (void)0)

Definition at line 686 of file error.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DBL_BIGDIG 
COROUTINE_REGISTERS 
COROUTINE_REGISTERS 
COROUTINE_REGISTERS 
COROUTINE_REGISTERS 
COROUTINE_REGISTERS 
COROUTINE_REGISTERS 
COROUTINE_XMM_REGISTERS 
COROUTINE_REGISTERS 
NAME_ERR_MESG__MESG 
NAME_ERR_MESG__RECV 
NAME_ERR_MESG__NAME 
NAME_ERR_MESG_COUNT 
raise_opt_cause 
raise_max_opt 
RAISED_EXCEPTION 
RAISED_STACKOVERFLOW 
RAISED_NOMEMORY 
DECIMAL_SIZE_OF_LONG 
JISX0301_DATE_SIZE 
FLAG_RETURNS_128BITS 
FLAG_RETURNS_NOTHING 
FLAG_RETURNS_FP 
FLAG_RETURNS_64BITS 
FLAG_RETURNS_STRUCT 
FLAG_ARG_NEEDS_COPY 
FLAG_FP_ARGUMENTS 
FLAG_4_GPR_ARGUMENTS 
FLAG_RETVAL_REFERENCE 
FLAG_RETURNS_SMST 
FLAG_RETURNS_NOTHING 
FLAG_RETURNS_FP 
FLAG_RETURNS_64BITS 
FLAG_RETURNS_128BITS 
FLAG_COMPAT 
FLAG_ARG_NEEDS_COPY 
FLAG_ARG_NEEDS_PSAVE 
FLAG_FP_ARGUMENTS 
FLAG_4_GPR_ARGUMENTS 
FLAG_RETVAL_REFERENCE 
JSON_object_start 
ossl_asn1_info_size 
tIGNORED_NL 
tCOMMENT 
tEMBDOC_BEG 
tEMBDOC 
tEMBDOC_END 
tHEREDOC_BEG 
tHEREDOC_END 
k__END__ 
ORDINAL_PARAM 
NO_PARAM 
NUMPARAM_MAX 
BITS_SIZE 
BITS_BITLENGTH 
RSTRUCT_EMBED_LEN_MAX 
RSTRUCT_EMBED_LEN_MASK 
RSTRUCT_EMBED_LEN_SHIFT 
RSTRUCT_TRANSIENT_FLAG 
RSTRUCT_ENUM_END 
bom_prefix_len 
MT_MAX_STATE 
PCH_NOT_READY 
PCH_FAILED 
PCH_SUCCESS 
ORDINAL_PARAM 
NO_PARAM 
NUMPARAM_MAX 
COMPILATION_FEATURES 
DEFAULT_FEATURES 
LONGEST_SIGNAME 
LEFT 
CHCASE 
LOWER 
UPPER 
AREF_HASH_UNIT 
AREF_HASH_THRESHOLD 
TMOPT_IN 
TMOPT_MAX_ 
CALLER_BINDING_SELF 
CALLER_BINDING_CLASS 
CALLER_BINDING_BINDING 
CALLER_BINDING_ISEQ 
CALLER_BINDING_CFP 
VM_FRAME_MAGIC_METHOD 
VM_FRAME_MAGIC_BLOCK 
VM_FRAME_MAGIC_CLASS 
VM_FRAME_MAGIC_TOP 
VM_FRAME_MAGIC_CFUNC 
VM_FRAME_MAGIC_IFUNC 
VM_FRAME_MAGIC_EVAL 
VM_FRAME_MAGIC_RESCUE 
VM_FRAME_MAGIC_DUMMY 
VM_FRAME_MAGIC_MASK 
VM_FRAME_FLAG_PASSED 
VM_FRAME_FLAG_FINISH 
VM_FRAME_FLAG_BMETHOD 
VM_FRAME_FLAG_CFRAME 
VM_FRAME_FLAG_LAMBDA 
VM_FRAME_FLAG_MODIFIED_BLOCK_PARAM 
VM_FRAME_FLAG_CFRAME_KW 
VM_FRAME_FLAG_CFRAME_EMPTY_KW 
VM_ENV_FLAG_LOCAL 
VM_ENV_FLAG_ESCAPED 
VM_ENV_FLAG_WB_REQUIRED 
MINIMUM_REPARSE_BUFFER_PATH_LEN 
SI_USER 
SI_ASYNCIO 
SI_MESGQ 
SI_TIMER 
SI_QUEUE 
SI_KERNEL 
ILL_ILLOPC 
ILL_ILLOPN 
ILL_ILLADR 
ILL_ILLTRP 
ILL_PRVOPC 
ILL_PRVREG 
ILL_COPROC 
ILL_BADSTK 
FPE_INTDIV 
FPE_INTOVF 
FPE_FLTDIV 
FPE_FLTOVF 
FPE_FLTUND 
FPE_FLTRES 
FPE_FLTINV 
FPE_FLTSUB 
SEGV_MAPERR 
SEGV_ACCERR 
BUS_ADRALN 
BUS_ADRERR 
BUS_OBJERR 
CLD_EXITED 
CLD_KILLED 
CLD_DUMPED 
CLD_TRAPPED 
CLD_STOPPED 
CLD_CONTINUED 

Definition at line 1683 of file error.c.

Function Documentation

◆ FUNC_MINIMIZED()

FUNC_MINIMIZED ( static void   bug_important_messageFILE *out, const char *const msg, size_t len)

◆ Init_Exception()

void Init_Exception ( void  )

◆ Init_syserr()

void Init_syserr ( void  )

Definition at line 3057 of file error.c.

◆ Init_warning()

void Init_warning ( void  )

Definition at line 3070 of file error.c.

◆ NORETURN() [1/3]

NORETURN ( static void   dievoid)

◆ NORETURN() [2/3]

NORETURN ( static void   raise_loaderrorVALUE path, VALUE mesg)

◆ NORETURN() [3/3]

NORETURN ( static void   unexpected_typeVALUE, int, int)

◆ rb_assert_failure()

MJIT_FUNC_EXPORTED void rb_assert_failure ( const char file,
int  line,
const char name,
const char expr 
)

Definition at line 718 of file error.c.

References fprintf(), name, ruby_description, and stderr.

◆ rb_async_bug_errno()

void rb_async_bug_errno ( const char mesg,
int  errno_arg 
)

Definition at line 690 of file error.c.

References strlen(), WRITE_CONST, and write_or_abort.

◆ rb_bug()

void rb_bug ( const char fmt,
  ... 
)

◆ rb_bug_errno()

void rb_bug_errno ( const char mesg,
int  errno_arg 
)

Definition at line 669 of file error.c.

References rb_bug().

◆ rb_bug_for_fatal_signal()

void rb_bug_for_fatal_signal ( ruby_sighandler_t  default_sighandler,
int  sig,
const void ctx,
const char fmt,
  ... 
)

Definition at line 651 of file error.c.

References fmt, GET_EC, NULL, rb_source_location_cstr(), report_bug, and sig.

◆ rb_bug_reporter_add()

int rb_bug_reporter_add ( void(*)(FILE *, void *)  func,
void data 
)

Definition at line 457 of file error.c.

◆ rb_builtin_class_name()

const char* rb_builtin_class_name ( VALUE  x)

Definition at line 799 of file error.c.

◆ rb_builtin_type_name()

const char* rb_builtin_type_name ( int  t)

Definition at line 763 of file error.c.

References name, and numberof.

◆ rb_check_copyable()

void rb_check_copyable ( VALUE  obj,
VALUE  orig 
)

Definition at line 3049 of file error.c.

References FL_ABLE, obj, and rb_check_frozen_internal.

◆ rb_check_frozen()

void rb_check_frozen ( VALUE  obj)

Definition at line 3030 of file error.c.

References obj, and rb_check_frozen_internal.

◆ rb_check_trusted()

void rb_check_trusted ( VALUE  obj)

Definition at line 3043 of file error.c.

References rb_warning().

◆ rb_check_type()

void rb_check_type ( VALUE  x,
int  t 
)

Definition at line 839 of file error.c.

References Qundef, rb_bug(), RTYPEDDATA_P, T_DATA, TYPE, and UNDEF_LEAKED.

◆ rb_check_typeddata()

void* rb_check_typeddata ( VALUE  obj,
const rb_data_type_t data_type 
)

Definition at line 891 of file error.c.

References obj, RB_TYPE_P, and T_DATA.

◆ rb_compile_warn()

void rb_compile_warn ( const char file,
int  line,
const char fmt,
  ... 
)

Definition at line 272 of file error.c.

References fmt, NIL_P, ruby_verbose, str, and va_start.

◆ rb_compile_warning()

void rb_compile_warning ( const char file,
int  line,
const char fmt,
  ... 
)

Definition at line 287 of file error.c.

References fmt, RTEST, ruby_verbose, str, and va_start.

◆ rb_ec_backtrace_location_ary()

VALUE rb_ec_backtrace_location_ary ( rb_execution_context_t ec,
long  lev,
long  n 
)

◆ rb_enc_raise()

void rb_enc_raise ( rb_encoding enc,
VALUE  exc,
const char fmt,
  ... 
)

Definition at line 2652 of file error.c.

References exc, fmt, rb_enc_vsprintf(), rb_exc_new3, rb_exc_raise(), va_end, and va_start.

◆ rb_enc_warn()

void rb_enc_warn ( rb_encoding enc,
const char fmt,
  ... 
)

Definition at line 325 of file error.c.

References fmt, NIL_P, ruby_verbose, and with_warning_string.

◆ rb_ensure()

VALUE rb_ensure ( VALUE(*)(VALUE b_proc,
VALUE  data1,
VALUE(*)(VALUE e_proc,
VALUE  data2 
)

An equivalent to ensure clause.

Equivalent to begin .. ensure .. end.

Calls the function b_proc with data1 as the argument, then calls e_proc with data2 when execution terminated.

Returns
The return value of b_proc if no exception occurred, or Qnil if otherwise.
See also
rb_rescue
rb_rescue2
rb_protect

Definition at line 1115 of file eval.c.

Referenced by rb_gvar_set(), rb_mutex_sleep(), rb_mutex_synchronize(), rb_str_locktmp_ensure(), rsock_init_inetsock(), and rsock_make_hostent().

◆ rb_errinfo()

VALUE rb_errinfo ( void  )

The current exception in the current thread.

Same as $! in Ruby.

Returns
the current exception or Qnil

Definition at line 1882 of file eval.c.

References GET_EC.

◆ rb_error_frozen()

void rb_error_frozen ( const char what)

Definition at line 2976 of file error.c.

References rb_eFrozenError, and rb_raise().

◆ rb_error_frozen_object()

void rb_error_frozen_object ( VALUE  frozen_obj)

◆ rb_error_untrusted()

void rb_error_untrusted ( VALUE  obj)

Definition at line 3036 of file error.c.

References rb_warning().

◆ rb_error_write()

void rb_error_write ( VALUE  errinfo,
VALUE  emesg,
VALUE  errat,
VALUE  str,
VALUE  highlight,
VALUE  reverse 
)

Definition at line 300 of file eval_error.c.

References CLASS_OF, NIL_P, Qnil, Qundef, rb_stderr_tty_p(), and rb_strlen_lit.

Referenced by rb_ec_error_print().

◆ rb_exc_fatal()

void rb_exc_fatal ( VALUE  mesg)

Raises a fatal error in the current thread.

Same as rb_exc_raise() but raises a fatal error, which Ruby codes cannot rescue.

Definition at line 684 of file eval.c.

References NIL_P.

◆ rb_exc_new()

VALUE rb_exc_new ( VALUE  etype,
const char ptr,
long  len 
)

Definition at line 961 of file error.c.

References len, ptr, rb_class_new_instance(), and rb_str_new.

Referenced by rb_exc_new_cstr(), and rb_interrupt().

◆ rb_exc_new_cstr()

VALUE rb_exc_new_cstr ( VALUE  etype,
const char s 
)

Definition at line 968 of file error.c.

References rb_exc_new(), and strlen().

◆ rb_exc_new_str()

VALUE rb_exc_new_str ( VALUE  etype,
VALUE  str 
)

Definition at line 974 of file error.c.

References rb_class_new_instance(), str, and StringValue().

Referenced by rb_error_frozen_object(), and rb_keyword_error_new().

◆ rb_exc_raise()

void rb_exc_raise ( VALUE  mesg)

Raises an exception in the current thread.

Parameters
[in]mesgan Exception class or an Exception object.
Exceptions
alwaysraises an instance of the given exception class or the given Exception object.

Definition at line 668 of file eval.c.

References NIL_P.

Referenced by rb_enc_raise(), rb_exit(), rb_f_abort(), rb_interrupt(), rb_mod_syserr_fail(), rb_mod_syserr_fail_str(), rb_name_error(), rb_name_error_str(), rb_sys_fail(), rb_sys_fail_str(), rb_syserr_fail(), rb_syserr_fail_str(), rb_throw_obj(), rb_vm_jump_tag_but_local_jump(), and rb_vraise().

◆ rb_exc_set_backtrace()

MJIT_FUNC_EXPORTED VALUE rb_exc_set_backtrace ( VALUE  exc,
VALUE  bt 
)

Definition at line 1312 of file error.c.

◆ rb_fatal()

void rb_fatal ( const char fmt,
  ... 
)

Definition at line 2722 of file error.c.

References fprintf(), rb_print_backtrace(), ruby_thread_has_gvl_p(), and stderr.

◆ rb_frozen_error_raise()

void rb_frozen_error_raise ( VALUE  frozen_obj,
const char fmt,
  ... 
)

◆ rb_get_backtrace()

VALUE rb_get_backtrace ( VALUE  exc)

Definition at line 1231 of file error.c.

Referenced by rb_ec_error_print().

◆ rb_get_message()

VALUE rb_get_message ( VALUE  exc)

Definition at line 1053 of file error.c.

References exc, and rb_check_funcall().

Referenced by rb_ec_error_print().

◆ rb_interrupt()

void rb_interrupt ( void  )

Raises an Interrupt exception.

Definition at line 697 of file eval.c.

References rb_eInterrupt, rb_exc_new(), and rb_exc_raise().

Referenced by rb_signal_exec().

◆ rb_invalid_str()

void rb_invalid_str ( const char str,
const char type 
)

Definition at line 1867 of file error.c.

References PRIsVALUE, rb_eArgError, rb_raise(), rb_str_new2, and str.

◆ rb_iseqw_local_variables()

VALUE rb_iseqw_local_variables ( VALUE  iseqval)

Definition at line 3325 of file iseq.c.

References rb_iseq_local_variables().

◆ rb_iseqw_new()

VALUE rb_iseqw_new ( const rb_iseq_t )

Definition at line 1157 of file iseq.c.

◆ rb_jump_tag()

void rb_jump_tag ( int  tag)

Continues the exception caught by rb_protect() and rb_eval_string_protect().

This function never return to the caller.

Parameters
[in]thevalue of *state which the protect function has set to the their last parameter.

Definition at line 884 of file eval.c.

References EC_JUMP_TAG, GET_EC, TAG_FATAL, unknown_longjmp_status, and UNLIKELY.

Referenced by ossl_buf2str(), and ossl_membio2str().

◆ rb_key_err_new()

VALUE rb_key_err_new ( VALUE  mesg,
VALUE  recv,
VALUE  key 
)

Definition at line 1909 of file error.c.

References exc, id_bt, id_mesg, Qnil, rb_eKeyError, rb_ivar_set(), and rb_obj_alloc().

◆ rb_load_fail()

void rb_load_fail ( VALUE  path,
const char err 
)

Definition at line 2967 of file error.c.

References err, path, rb_str_append(), rb_str_buf_new_cstr, and rb_str_cat2.

◆ rb_loaderror()

void rb_loaderror ( const char fmt,
  ... 
)

Definition at line 2690 of file error.c.

References fmt, rb_enc_vsprintf(), rb_locale_encoding(), va_end, and va_start.

Referenced by dln_load(), and rb_f_require_relative().

◆ rb_loaderror_with_path()

void rb_loaderror_with_path ( VALUE  path,
const char fmt,
  ... 
)

Definition at line 2702 of file error.c.

References fmt, rb_enc_vsprintf(), rb_locale_encoding(), va_end, and va_start.

◆ rb_make_exception()

VALUE rb_make_exception ( int  argc,
const VALUE argv 
)

Make an Exception object from the list of arguments in a manner similar to Kernel#raise.

Parameters
[in]argcthe number of arguments
[in]argva pointer to the array of arguments.

The first form of this function takes a String argument. Then it returns a RuntimeError whose error message is the given value.

The second from of this function takes an Exception object. Then it just returns the given value.

The last form takes an exception class, an optional error message and an optional array of backtrace. Then it passes the optional arguments to #exception method of the exception class.

Returns
the exception object, or Qnil if argc is 0.

Definition at line 851 of file eval.c.

◆ rb_mod_sys_fail()

void rb_mod_sys_fail ( VALUE  mod,
const char mesg 
)

Definition at line 2835 of file error.c.

References exc.

◆ rb_mod_sys_fail_str()

void rb_mod_sys_fail_str ( VALUE  mod,
VALUE  mesg 
)

Definition at line 2843 of file error.c.

References exc.

◆ rb_mod_syserr_fail()

void rb_mod_syserr_fail ( VALUE  mod,
int  e,
const char mesg 
)

Definition at line 2851 of file error.c.

References exc, mod, rb_exc_raise(), rb_extend_object(), and rb_syserr_new().

◆ rb_mod_syserr_fail_str()

void rb_mod_syserr_fail_str ( VALUE  mod,
int  e,
VALUE  mesg 
)

Definition at line 2859 of file error.c.

References exc, mod, rb_exc_raise(), rb_extend_object(), and rb_syserr_new_str().

◆ rb_name_err_new()

VALUE rb_name_err_new ( VALUE  mesg,
VALUE  recv,
VALUE  method 
)

Definition at line 1594 of file error.c.

References exc, rb_eNameError, and rb_obj_alloc().

Referenced by rb_make_no_method_exception().

◆ rb_name_error()

void rb_name_error ( ID  id,
const char fmt,
  ... 
)

◆ rb_name_error_str()

void rb_name_error_str ( VALUE  str,
const char fmt,
  ... 
)

Definition at line 1530 of file error.c.

References argv, exc, fmt, rb_class_new_instance(), rb_eNameError, rb_exc_raise(), rb_vsprintf(), str, va_end, and va_start.

Referenced by rb_f_untrace_var().

◆ rb_nomethod_err_new()

VALUE rb_nomethod_err_new ( VALUE  mesg,
VALUE  recv,
VALUE  method,
VALUE  args,
int  priv 
)

Definition at line 1675 of file error.c.

References exc, rb_eNoMethodError, and rb_obj_alloc().

Referenced by rb_make_no_method_exception().

◆ rb_notimplement()

void rb_notimplement ( void  )

Definition at line 2714 of file error.c.

References PRIsVALUE, rb_eNotImpError, rb_frame_this_func(), rb_id2str, and rb_raise().

Referenced by flock(), and rb_f_notimplement().

◆ rb_protect()

VALUE rb_protect ( VALUE(*)(VALUE proc,
VALUE  data,
int pstate 
)

Protects a function call from potential global escapes from the function.

Such global escapes include exceptions, Kernel#throw, break in an iterator, for example. It first calls the function func with arg as the argument. If no exception occurred during func, it returns the result of func and *state is zero. Otherwise, it returns Qnil and sets *state to nonzero. If state is NULL, it is not set in both cases.

You have to clear the error info with rb_set_errinfo(Qnil) when ignoring the caught exception.

See also
rb_rescue
rb_rescue2
rb_ensure

Definition at line 1072 of file eval.c.

Referenced by goruby_run_node(), ossl_generate_cb_2(), ossl_pem_passwd_cb(), ossl_pkey_new(), ossl_str_new(), ossl_verify_cb_call(), rb_eval_string_protect(), rb_eval_string_wrap(), and rb_execarg_parent_start().

◆ rb_raise()

void rb_raise ( VALUE  exc,
const char fmt,
  ... 
)

Definition at line 2671 of file error.c.

References exc, fmt, rb_vraise(), va_end, and va_start.

Referenced by generic_to_value(), Init_openssl(), int_to_ffi_type(), ole_variant2val(), onigenc_single_byte_code_to_mbc(), rb_add_method_cfunc(), rb_alias(), rb_alloc_tmp_buffer(), rb_ary_resize(), rb_ary_store(), rb_autoload(), rb_autoload_str(), rb_big_mul_karatsuba(), rb_big_mul_toom3(), rb_bool_expected(), rb_check_id(), rb_check_inheritable(), rb_class_inherited_p(), rb_class_superclass(), rb_const_set(), rb_current_receiver(), rb_declare_transcoder(), rb_define_class(), rb_define_class_id_under(), rb_define_module(), rb_define_module_id_under(), rb_econv_append(), rb_enc_associate_index(), rb_enc_check(), rb_enc_codelen(), rb_enc_codepoint_len(), rb_enc_set_default_external(), rb_enc_uint_chr(), rb_eof_error(), rb_error_frozen(), rb_execarg_addopt(), rb_fix2str(), rb_Hash(), rb_insecure_operation(), rb_int_powm(), rb_invalid_str(), rb_io_check_byte_readable(), rb_io_check_char_readable(), rb_io_check_initialized(), rb_io_check_writable(), rb_io_modestr_fmode(), rb_iseq_ibf_dump(), rb_lambda_call(), rb_marshal_define_compat(), rb_must_asciicompat(), rb_notimplement(), rb_num2fix(), rb_num2long(), rb_num_zerodiv(), rb_obj_encoding(), rb_obj_init_copy(), rb_path_to_class(), rb_range_beg_len(), rb_secure(), rb_set_errinfo(), rb_set_safe_level(), rb_str_cat(), rb_str_cat_conv_enc_opts(), rb_str_concat(), rb_str_ellipsize(), rb_str_modify_expand(), rb_str_plus(), rb_str_resize(), rb_str_setter(), rb_str_unlocktmp(), rb_struct_init_copy(), rb_struct_members(), rb_sym_proc_call(), rb_thread_stop(), rb_thread_wakeup(), rb_time_new(), rb_tracearg_eval_script(), rb_tracearg_instruction_sequence(), rb_tracearg_object(), rb_tracearg_raised_exception(), rb_tracearg_return_value(), rb_undef(), rb_uv_to_utf8(), rb_vm_cbase(), rb_vm_ifunc_new(), rb_vm_make_binding(), rb_warning_category_from_name(), rb_yield_splat(), rb_yield_splat_kw(), rsock_io_socket_addrinfo(), RUBY_ALIAS_FUNCTION(), ruby_malloc_size_overflow(), value_to_generic(), and VpAlloc().

◆ rb_report_bug_valist()

void rb_report_bug_valist ( VALUE  file,
int  line,
const char fmt,
va_list  args 
)

Definition at line 712 of file error.c.

References fmt, NULL, report_bug_valist, and RSTRING_PTR.

◆ rb_rescue()

VALUE rb_rescue ( VALUE(*)(VALUE b_proc,
VALUE  data1,
VALUE(*)(VALUE, VALUE r_proc,
VALUE  data2 
)

An equivalent of rescue clause.

Equivalent to begin .. rescue .. end.

It is same as

rb_rescue2(b_proc, data1, r_proc, data2, rb_eStandardError, (VALUE)0);
See also
rb_rescue2
rb_ensure
rb_protect

Definition at line 1047 of file eval.c.

References rb_eStandardError, and rb_rescue2().

◆ rb_rescue2()

VALUE rb_rescue2 ( VALUE(*)(VALUE b_proc,
VALUE  data1,
VALUE(*)(VALUE, VALUE r_proc,
VALUE  data2,
  ... 
)

An equivalent of rescue clause.

Equivalent to begin .. rescue err_type .. end

Parameters
[in]b_proca function which potentially raises an exception.
[in]data1the argument of b_proc
[in]r_proca function which rescues an exception in b_proc.
[in]data2the first argument of r_proc
[in]...1 or more exception classes. Must be terminated by (VALUE)0.

First it calls the function b_proc, with data1 as the argument. When b_proc raises an exception, it calls r_proc with data2 and the exception object if the exception is a kind of one of the given exception classes.

Returns
the return value of b_proc if no exception occurs, or the return value of r_proc if otherwise.
See also
rb_rescue
rb_ensure
rb_protect

Definition at line 962 of file eval.c.

References rb_vrescue2(), va_end, and va_start.

Referenced by rb_rescue().

◆ rb_set_errinfo()

void rb_set_errinfo ( VALUE  err)

Sets the current exception ($!) to the given value.

Parameters
[in]erran Exception object or Qnil.
Exceptions
TypeErrorif err is neither an exception nor nil.
Note
this function does not raise the exception. Use rb_raise() when you want to raise.

Definition at line 1896 of file eval.c.

References err, GET_EC, NIL_P, rb_eException, rb_eTypeError, rb_obj_is_kind_of(), and rb_raise().

◆ rb_str_end_with_asciichar()

int rb_str_end_with_asciichar ( VALUE  str,
int  c 
)

◆ rb_syntax_error_append()

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 exc, NIL_P, NULL, rb_enc_str_new(), and RSTRING_PTR.

◆ rb_sys_enc_warning()

void rb_sys_enc_warning ( rb_encoding enc,
const char fmt,
  ... 
)

Definition at line 2945 of file error.c.

References errno, fmt, RTEST, ruby_verbose, and with_warning_string.

◆ rb_sys_fail()

void rb_sys_fail ( const char mesg)

◆ rb_sys_fail_str()

void rb_sys_fail_str ( VALUE  mesg)

Definition at line 2801 of file error.c.

References rb_exc_raise().

Referenced by ruby_setenv().

◆ rb_sys_warning()

void rb_sys_warning ( const char fmt,
  ... 
)

Definition at line 2921 of file error.c.

References errno, fmt, RTEST, ruby_verbose, and with_warning_string.

◆ rb_syserr_enc_warning()

void rb_syserr_enc_warning ( int  err,
rb_encoding enc,
const char fmt,
  ... 
)

Definition at line 2957 of file error.c.

References fmt, RTEST, ruby_verbose, and with_warning_string.

◆ rb_syserr_fail()

void rb_syserr_fail ( int  e,
const char mesg 
)

◆ rb_syserr_fail_str()

void rb_syserr_fail_str ( int  e,
VALUE  mesg 
)

◆ rb_syserr_new()

VALUE rb_syserr_new ( int  n,
const char mesg 
)

Definition at line 2769 of file error.c.

References arg, n, Qnil, rb_str_new2, and rb_syserr_new_str().

Referenced by rb_mod_syserr_fail(), and rb_syserr_fail().

◆ rb_syserr_new_str()

VALUE rb_syserr_new_str ( int  n,
VALUE  arg 
)

Definition at line 2777 of file error.c.

References arg, and rb_class_new_instance().

Referenced by rb_mod_syserr_fail_str(), rb_syserr_fail_str(), and rb_syserr_new().

◆ rb_typeddata_inherited_p()

int rb_typeddata_inherited_p ( const rb_data_type_t child,
const rb_data_type_t parent 
)

Definition at line 864 of file error.c.

References rb_data_type_struct::parent.

Referenced by rb_typeddata_is_kind_of().

◆ rb_typeddata_is_instance_of()

int rb_typeddata_is_instance_of ( VALUE  obj,
const rb_data_type_t data_type 
)

Definition at line 885 of file error.c.

◆ rb_typeddata_is_kind_of()

int rb_typeddata_is_kind_of ( VALUE  obj,
const rb_data_type_t data_type 
)

◆ rb_unexpected_type()

void rb_unexpected_type ( VALUE  x,
int  t 
)

Definition at line 854 of file error.c.

References Qundef, rb_bug(), and UNDEF_LEAKED.

◆ rb_vraise()

void rb_vraise ( VALUE  exc,
const char fmt,
va_list  ap 
)

Definition at line 2665 of file error.c.

References exc, fmt, rb_exc_new3, rb_exc_raise(), and rb_vsprintf().

Referenced by rb_raise().

◆ rb_warn()

void rb_warn ( const char fmt,
  ... 
)

◆ rb_warn_deprecated()

void rb_warn_deprecated ( const char fmt,
const char suggest,
  ... 
)

◆ rb_warning()

void rb_warning ( const char fmt,
  ... 
)

◆ rb_warning_category_enabled_p()

MJIT_FUNC_EXPORTED bool rb_warning_category_enabled_p ( rb_warning_category_t  category)

Definition at line 166 of file error.c.

Referenced by rb_const_warn_if_deprecated(), and rb_warn_deprecated().

◆ rb_warning_category_from_name()

rb_warning_category_t rb_warning_category_from_name ( VALUE  category)

◆ rb_warning_category_update()

void rb_warning_category_update ( unsigned int  mask,
unsigned int  bits 
)

Definition at line 159 of file error.c.

◆ rb_warning_string()

VALUE rb_warning_string ( const char fmt,
  ... 
)

Definition at line 346 of file error.c.

References fmt, and with_warning_string.

Variable Documentation

◆ rb_cNameErrorMesg

VALUE rb_cNameErrorMesg

Definition at line 936 of file error.c.

◆ rb_eArgError

VALUE rb_eArgError

◆ rb_eEAGAIN

VALUE rb_eEAGAIN

Definition at line 54 of file error.c.

◆ rb_eEINPROGRESS

VALUE rb_eEINPROGRESS

Definition at line 56 of file error.c.

◆ rb_eEncCompatError

VALUE rb_eEncCompatError

Definition at line 931 of file error.c.

Referenced by rb_enc_check(), and rb_must_asciicompat().

◆ rb_eEncodingError

VALUE rb_eEncodingError

Definition at line 930 of file error.c.

◆ rb_eEWOULDBLOCK

VALUE rb_eEWOULDBLOCK

Definition at line 55 of file error.c.

◆ rb_eException

VALUE rb_eException

Definition at line 916 of file error.c.

Referenced by Init_Exception(), and rb_set_errinfo().

◆ rb_eFatal

VALUE rb_eFatal

Definition at line 920 of file error.c.

◆ rb_eFrozenError

VALUE rb_eFrozenError

Definition at line 923 of file error.c.

Referenced by rb_error_frozen(), rb_error_frozen_object(), and rb_frozen_error_raise().

◆ rb_eIndexError

VALUE rb_eIndexError

Definition at line 926 of file error.c.

Referenced by rb_ary_resize(), rb_ary_store(), rb_str_cat_conv_enc_opts(), and rb_str_ellipsize().

◆ rb_eInterrupt

VALUE rb_eInterrupt

Definition at line 918 of file error.c.

Referenced by rb_interrupt().

◆ rb_eKeyError

VALUE rb_eKeyError

Definition at line 927 of file error.c.

Referenced by rb_key_err_new().

◆ rb_eLoadError

VALUE rb_eLoadError

Definition at line 941 of file error.c.

◆ rb_eNameError

VALUE rb_eNameError

Definition at line 929 of file error.c.

Referenced by rb_autoload_str(), rb_name_err_new(), rb_name_error(), and rb_name_error_str().

◆ rb_eNoMatchingPatternError

VALUE rb_eNoMatchingPatternError

Definition at line 937 of file error.c.

◆ rb_eNoMemError

VALUE rb_eNoMemError

Definition at line 935 of file error.c.

◆ rb_eNoMethodError

VALUE rb_eNoMethodError

Definition at line 932 of file error.c.

Referenced by rb_make_no_method_exception(), and rb_nomethod_err_new().

◆ rb_eNotImpError

VALUE rb_eNotImpError

Definition at line 934 of file error.c.

Referenced by rb_notimplement().

◆ rb_eRangeError

VALUE rb_eRangeError

◆ rb_eRuntimeError

VALUE rb_eRuntimeError

◆ rb_eScriptError

VALUE rb_eScriptError

Definition at line 939 of file error.c.

◆ rb_eSecurityError

VALUE rb_eSecurityError

Definition at line 933 of file error.c.

Referenced by rb_insecure_operation(), and rb_secure().

◆ rb_eSignal

VALUE rb_eSignal

Definition at line 919 of file error.c.

Referenced by rb_threadptr_signal_raise().

◆ rb_eStandardError

VALUE rb_eStandardError

◆ rb_eSyntaxError

VALUE rb_eSyntaxError

Definition at line 940 of file error.c.

◆ rb_eSystemCallError

VALUE rb_eSystemCallError

Definition at line 943 of file error.c.

◆ rb_eSystemExit

VALUE rb_eSystemExit

Definition at line 917 of file error.c.

Referenced by rb_exit(), rb_f_abort(), and rb_threadptr_signal_exit().

◆ rb_eTypeError

VALUE rb_eTypeError

◆ rb_mErrno

VALUE rb_mErrno

Definition at line 944 of file error.c.

◆ ruby_description

const char ruby_description[]
extern

Definition at line 43 of file version.c.

Referenced by rb_assert_failure().

◆ ruby_static_id_cause

ID ruby_static_id_cause

Definition at line 947 of file error.c.

VALUE
unsigned long VALUE
Definition: ruby.h:102
fmt
const VALUE int int int int int int VALUE char * fmt
Definition: rb_mjit_min_header-2.7.2.h:6497
va_start
#define va_start(v, l)
Definition: rb_mjit_min_header-2.7.2.h:4013
rb_rescue2
VALUE rb_rescue2(VALUE(*b_proc)(VALUE), VALUE data1, VALUE(*r_proc)(VALUE, VALUE), VALUE data2,...)
An equivalent of rescue clause.
Definition: eval.c:962
rb_eStandardError
VALUE rb_eStandardError
Definition: error.c:921