るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. kernel $error_info
  2. kernel $error_position
  3. kernel $program_name
  4. kernel $input_line_number
  5. kernel $loaded_features

ライブラリ

検索結果

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

$@ の別名

$@ の別名

require "English"
class SomethingError < StandardError; end

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