From: Nikolai Lugovoi Date: 2009-10-22T22:01:16+09:00 Subject: Re: Creating and raising custom exception in Ruby C extension On Thu, Oct 22, 2009 at 3:55 PM, Iñaki Baz Castillo wrote: >        VALUE class_standard_error = rb_const_get(rb_cObject, rb_intern("StandardError")); >        VALUE argv[0]; >        VALUE new_error = rb_class_new_instance(0, argv, class_standard_error); >        rb_raise(new_error, "Oh an error ocurred !!!"); > why not simple: VALUE custom_error = rb_define_class("CustomError", rb_eStandardError); rb_raise(custom_error, "An error occured!");