11件ヒット
[1-11件を表示]
(0.097秒)
ライブラリ
- ビルトイン (11)
クラス
- TracePoint (11)
検索結果
-
TracePoint
# raised _ exception -> Exception (27308.0) -
発生した例外を返します。
...eError :raise イベントのためのイベントフックの外側で実行し
た場合に発生します。
//emlist[例][ruby]{
trace = TracePoint.new(:raise) do |tp|
tp.raised_exception # => #<ZeroDivisionError: divided by 0>
end
trace.enable
begin
0/0
rescue
end
//}...