るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.167秒)

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. fiddle type_intptr_t
  5. t61string new

ライブラリ

クラス

検索結果

Exception#backtrace -> [String] (24326.0)

バックトレース情報を返します。

...eline}:in `#{method}'"
(メソッド内の場合)
* "#{sourcefile}:#{sourceline}"
(トップレベルの場合)

という形式の String の配列です。

//emlist[例][ruby]{
def methd
raise
end

begin
methd
rescue => e
p e.backtrace
end

#=> ["filename.rb:2:in `methd'", "filena...
...me.rb:6"]
//}

@
see Exception#backtrace_locations...