Method: Thread.abort_on_exception
- Defined in:
- thread.c
.abort_on_exception ⇒ Boolean
Returns the status of the global “abort on exception” condition.
The default is false.
When set to true, if any thread is aborted by an exception, the raised exception will be re-raised in the main thread.
Can also be specified by the global $DEBUG flag or command line option -d.
See also ::abort_on_exception=.
There is also an instance level method to set this for a specific thread, see #abort_on_exception.
2945 2946 2947 2948 2949 |
# File 'thread.c', line 2945
static VALUE
rb_thread_s_abort_exc(VALUE _)
{
return GET_THREAD()->vm->thread_abort_on_exception ? Qtrue : Qfalse;
}
|