This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

report_on_exception=

        # Thread.report_on_exception=

(from ruby core)
---
    Thread.report_on_exception= boolean   -> true or false

---

Returns the new state. When set to `true`, all threads created
afterwards will inherit the condition and report a message on $stderr if
an exception kills a thread:

    Thread.report_on_exception = true
    t1 = Thread.new do
      puts  "In new thread"
      raise "Exception from thread"
    end
    sleep(1)
    puts "In the main thread"

This will produce:

    In new thread
    #<Thread:...prog.rb:2> terminated with exception (report_on_exception is true):
    Traceback (most recent call last):
    prog.rb:4:in `block in <main>': Exception from thread (RuntimeError)
    In the main thread

See also ::report_on_exception.

There is also an instance level method to set this for a specific
thread, see #report_on_exception=.


(from ruby core)
---
    thr.report_on_exception= boolean   -> true or false

---

When set to `true`, a message is printed on $stderr if an exception
kills this `thr`.  See ::report_on_exception for details.

See also #report_on_exception.

There is also a class level method to set this for all new threads, see
::report_on_exception=.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.