るりまサーチ (Ruby 3.2)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.119秒)
トップページ > クエリ:l[x] > クエリ:EX[x] > バージョン:3.2[x] > クエリ:>[x] > クエリ:$ERROR_INFO[x]

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. float >
  4. module >
  5. comparable >

ライブラリ

モジュール

検索結果

Kernel$$ERROR_INFO -> Exception | nil (64240.0)

$! の別名

$! の別名

require "English"
class SomethingError < StandardError; end

begin
raise SomethingError
rescue
p $ERROR_INFO.backtrace #=> ["sample.rb:5"]
p $ERROR_INFO.to_s #=> "SomethingError"
end