るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.031秒)
トップページ > バージョン:2.6.0[x] > クエリ:io[x] > クエリ:full_message[x] > クラス:Exception[x]

別のキーワード

  1. zlib full_flush
  2. rss full_name
  3. entry full_name
  4. task full_comment
  5. rake full_comment

検索結果

Exception#full_message(highlight: true, order: :bottom) -> String (63361.0)

例外の整形された文字列を返します。

...値は Exception.to_tty? の返り値と同じです。

@param order :top か :bottom で指定する必要があります。
バックトレースの一番奥がエラーメッセージの上(top)か下(bottom)かを指定します。
デフォルト値は Exception.to_tt...
...e[1m)\n\e[m"
$stderr = $stdout
p e.full_message # => "test.rb:2:in `<main>': test (RuntimeError)\n"
$stderr = STDERR
p e.full_message # => "\e[1mTraceback \e[m(most recent call last):\ntest.rb:2:in `<main>': \e[1mtest (\e[4;1mRuntimeError\e[m\e[1m)\n\e[m"
end
//}

@see Exception.to_tty?...

Exception.to_tty? -> bool (9022.0)

$stderr が変更されておらず、$stderr.tty? が真の場合は true を返します。

...$stderr が変更されておらず、$stderr.tty? が真の場合は true を返します。


@see Exception#full_message...