るりまサーチ

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

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. matrix d
  4. integer to_d
  5. kernel $-d

ライブラリ

クラス

検索結果

TracePoint#raised_exception -> Exception (30408.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
//}...