Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Thread#report_on_exception
thr.report_on_exception → true or false
thread.c
View on GitHub ↗
static VALUE
rb_thread_report_exc(VALUE thread)
{
return RBOOL(rb_thread_ptr(thread)->report_on_exception);
}
Returns the status of the thread-local “report on exception” condition for this thr.
The default value when creating a Thread is the value of the global flag Thread.report_on_exception.
See also report_on_exception=.
There is also a class level method to set this for all new threads, see ::report_on_exception=.
See also
.report_on_exception
.report_on_exception=
#report_on_exception=
#raise
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0