るりまサーチ (Ruby 2.6.0)

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

別のキーワード

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

ライブラリ

検索結果

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

$@ の別名

$@ の別名

require "English"
class SomethingError < StandardError; end

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