variable $ERROR_POSITION

$ERROR_POSITION -> [String] | nil[permalink][rdoc] [added by English]

$@ の別名

require "English"
class SomethingError < StandardError; end

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