るりまサーチ (Ruby 3.1)

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

別のキーワード

  1. _builtin <
  2. bigdecimal <
  3. module <
  4. float <
  5. complex <

ライブラリ

モジュール

検索結果

Kernel$$ERROR_INFO -> Exception | nil (54958.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