るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.107秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:@[x] > クエリ:ruby[x] > クエリ:end[x] > クエリ:enable[x] > クエリ:raised_exception[x]

別のキーワード

  1. _builtin enable
  2. mkmf enable_config
  3. kernel enable_config
  4. tracepoint enable
  5. net/pop enable_ssl

ライブラリ

クラス

検索結果

TracePoint#raised_exception -> Exception (18138.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

//}...