るりまサーチ

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

別のキーワード

  1. optionparser on
  2. optparse on
  3. tracer on
  4. _builtin abort_on_exception=
  5. _builtin abort_on_exception

ライブラリ

クラス

検索結果

Exception#set_backtrace(errinfo) -> nil | String | [String] (21328.0)

バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。

...rinfo nil、String あるいは String の配列のいずれかを指定します。

//emlist[例][ruby]{
begin
begin
raise "inner"
rescue
raise "outer"
end
rescue
$!.backtrace # => ["/path/to/test.rb:5:in `rescue in <main>'", "/path/to/test.rb:2:in `<main>'"]
$!.set_backtrace(["d...