るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.030秒)
トップページ > モジュール:Kernel[x] > 種類:変数[x] > バージョン:2.3.0[x] > クエリ:kernel[x] > クエリ:$error_info[x]

別のキーワード

  1. kernel $error_position
  2. english $error_info
  3. kernel $stdin
  4. kernel $archdir

ライブラリ

検索結果

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