summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-14 14:59:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-14 14:59:53 +0000
commit09a3ab4a2d4fb07e0d259c09255610d65673dd02 (patch)
tree3e57b76b88c538ad3b2e3116743d4c3431baef27 /error.c
parent7862a89c564005b4f2c0eed1308ebd193dcbcd14 (diff)
* error.c (exc_exception, {exit,name_err,syserr}_initialize): call
Execption#initialize. fixed: [ruby-talk:142593] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/error.c b/error.c
index 89d0707..8583286 100644
--- a/error.c
+++ b/error.c
@@ -384,7 +384,7 @@ exc_exception(argc, argv, self)
if (argc == 0) return self;
if (argc == 1 && self == argv[0]) return self;
exc = rb_obj_clone(self);
- exc_initialize(argc, argv, exc);
+ rb_obj_call_init(exc, argc, argv);
return exc;
}
@@ -553,7 +553,7 @@ exit_initialize(argc, argv, exc)
status = *argv++;
--argc;
}
- exc_initialize(argc, argv, exc);
+ rb_call_super(argc, argv);
rb_iv_set(exc, "status", status);
return exc;
}
@@ -633,7 +633,7 @@ name_err_initialize(argc, argv, self)
VALUE name;
name = (argc > 1) ? argv[--argc] : Qnil;
- exc_initialize(argc, argv, self);
+ rb_call_super(argc, argv);
rb_iv_set(self, "name", name);
return self;
}
@@ -916,7 +916,7 @@ syserr_initialize(argc, argv, self)
else {
mesg = rb_str_new2(err);
}
- exc_initialize(1, &mesg, self);
+ rb_call_super(1, &mesg);
rb_iv_set(self, "errno", error);
return self;
}