Lines Matching +defs:child +defs:name

54 #define defined_error(name, num) if (err == (num)) return (name);
55 #define undefined_error(name)
405 const char *name;
407 name = builtin_types[t];
408 if (*name) return name;
463 rb_typeddata_inherited_p(const rb_data_type_t *child, const rb_data_type_t *parent)
465 while (child) {
466 if (child == parent) return 1;
467 child = child->parent;
604 * Returns exception's message (or the name of the exception if
624 * Normally this returns the exception's message or name. By
639 * Return this exception's class name and message
930 * NameError.new(msg [, name]) -> name_error
932 * Construct a new NameError exception. If given the <i>name</i>
933 * parameter may subsequently be examined using the <code>NameError.name</code>
940 VALUE name;
942 name = (argc > 1) ? argv[--argc] : Qnil;
944 rb_iv_set(self, "name", name);
950 * name_error.name -> string or nil
952 * Return the name associated with this NameError exception.
958 return rb_attr_get(self, rb_intern("name"));
981 * NoMethodError.new(msg, name [, args]) -> no_method_error
983 * Construct a NoMethodError exception for a method of the given name
984 * called with the given arguments. The name may be accessed using
985 * the <code>#name</code> method on the resulting object, and the
1154 * As the subclass is created in module <code>Errno</code>, its name
1180 set_syserr(int n, const char *name)
1185 error = rb_define_class_under(rb_mErrno, name, rb_eSystemCallError);
1190 rb_define_const(rb_mErrno, name, error);
1201 char name[8]; /* some Windows' errno have 5 digits. */
1203 snprintf(name, sizeof(name), "E%03d", n);
1204 error = set_syserr(n, name);
1508 * Raised when a given name is invalid or undefined.
1522 * NameError: wrong constant name answer
1628 * exception's class name), an optional descriptive string, and optional
1630 * information like NameError#name.
1737 rb_define_method(rb_eNameError, "name", name_err_name, 0);
2019 #define defined_error(name, num) set_syserr((num), (name));
2020 #define undefined_error(name) set_syserr(0, (name));