るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.055秒)
トップページ > バージョン:2.2.0[x] > クエリ:IO[x] > クエリ:new[x] > クエリ:exception[x] > クエリ:raised_exception[x]

別のキーワード

  1. _builtin exception
  2. exception exception
  3. thread abort_on_exception
  4. thread abort_on_exception=
  5. _builtin abort_on_exception

ライブラリ

クラス

検索結果

TracePoint#raised_exception -> Exception (91564.0)

発生した例外を返します。

発生した例外を返します。

@raise RuntimeError :raise イベントのためのイベントフックの外側で実行し
た場合に発生します。

//emlist[例][ruby]{
trace = TracePoint.new(:raise) do |tp|
tp.raised_exception # => #<ZeroDivisionError: divided by 0>
end
trace.enable
begin
0/0
rescue
end
//}