るりまサーチ (Ruby 3.2)

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

別のキーワード

  1. kernel $error_info
  2. english $error_position
  3. kernel $process_id
  4. kernel $ignorecase

ライブラリ

検索結果

Kernel$$ERROR_POSITION -> [String] | nil (45325.0)

$@ の別名

$@ の別名

require "English"
class SomethingError < StandardError; end

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