Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Exception#message
exception.message → string
error.c
View on GitHub ↗
static VALUE
exc_message(VALUE exc)
{
return rb_funcallv(exc, idTo_s, 0, 0);
}
Returns the result of invoking exception.to_s. Normally this returns the exception’s message or name.