End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Psych::Visitors::ToRuby#build_exception
vis.build_exception(klass, message)
ext/psych/psych_to_ruby.c
View on GitHub ↗
static VALUE build_exception(VALUE self, VALUE klass, VALUE mesg)
{
VALUE e = rb_obj_alloc(klass);
rb_iv_set(e, "mesg", mesg);
return e;
}
Create an exception with class klass and message