raised_exception -> Exception
発生した例外を返します。
例 trace = TracePoint.new(:raise) do |tp| tp.raised_exception # => #<ZeroDivisionError: divided by 0> end trace.enable begin 0/0 rescue end
trace = TracePoint.new(:raise) do |tp| tp.raised_exception # => #<ZeroDivisionError: divided by 0> end trace.enable begin 0/0 rescue end