11件ヒット
[1-11件を表示]
(0.024秒)
別のキーワード
ライブラリ
- ビルトイン (11)
検索結果
-
Exception
# backtrace -> [String] (7.0) -
バックトレース情報を返します。
...バックトレース情報を返します。
デフォルトでは
* "#{sourcefile}:#{sourceline}:in `#{method}'"
(メソッド内の場合)
* "#{sourcefile}:#{sourceline}"
(トップレベルの場合)
という形式の String の配列です。
//emlist[例][ruby]{
def methd
r......aise
end
begin
methd
rescue => e
p e.backtrace
end
#=> ["filename.rb:2:in `methd'", "filename.rb:6"]
//}
@see Exception#backtrace_locations...