|
VALUE | rb_exc_new (VALUE etype, const char *ptr, long len) |
| Creates an instance of the passed exception class.
|
|
VALUE | rb_exc_new_cstr (VALUE etype, const char *str) |
| Identical to rb_exc_new(), except it assumes the passed pointer is a pointer to a C string.
|
|
VALUE | rb_exc_new_str (VALUE etype, VALUE str) |
| Identical to rb_exc_new_cstr(), except it takes a Ruby's string instead of C's.
|
|
void | rb_loaderror (const char *fmt,...) |
| Raises an instance of rb_eLoadError.
|
|
void | rb_loaderror_with_path (VALUE path, const char *fmt,...) |
| Identical to rb_loaderror(), except it additionally takes which file is unable to load.
|
|
void | rb_name_error (ID name, const char *fmt,...) |
| Raises an instance of rb_eNameError.
|
|
void | rb_name_error_str (VALUE name, const char *fmt,...) |
| Identical to rb_name_error(), except it takes a VALUE instead of ID.
|
|
void | rb_frozen_error_raise (VALUE recv, const char *fmt,...) |
| Raises an instance of rb_eFrozenError.
|
|
void | rb_invalid_str (const char *str, const char *type) |
| Honestly I don't understand the name, but it raises an instance of rb_eArgError.
|
|
void | rb_error_frozen (const char *what) |
| Identical to rb_frozen_error_raise(), except its raising exception has a message like "can't modify frozen /what/".
|
|
void | rb_error_frozen_object (VALUE what) |
| Identical to rb_error_frozen(), except it takes arbitrary Ruby object instead of C's string.
|
|
void | rb_check_frozen (VALUE obj) |
| Queries if the passed object is frozen.
|
|
void | rb_check_copyable (VALUE obj, VALUE orig) |
| Ensures that the passed object can be initialize_copy relationship.
|
|
static void | rb_check_frozen_inline (VALUE obj) |
| Just another name of rb_check_frozen.
|
|
static int | rb_check_arity (int argc, int min, int max) |
| Ensures that the passed integer is in the passed range.
|
|
Public APIs related to rb_eException.
- Author
- Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org
- Copyright
- This file is a part of the programming language Ruby. Permission is hereby granted, to either redistribute and/or modify this file, provided that the conditions mentioned in the file COPYING are met. Consult the file for details.
- Warning
- Symbols prefixed with either
RBIMPL
or rbimpl
are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will.
- Note
- To ruby-core: remember that this header can be possibly recursively included from extension libraries written in C++. Do not expect for instance
__VA_ARGS__
is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98.
Definition in file error.h.