7件ヒット
[1-7件を表示]
(0.328秒)
クラス
- Exception (7)
検索結果
-
Exception
# full _ message(highlight: true , order: :bottom) -> String (26127.0) -
例外の整形された文字列を返します。
...なら :top です。
//emlist[例][ruby]{
begin
raise "test"
rescue => e
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"
$stderr = $stdout
p e.full_message # => "test.rb:2:in `<main>': test (Runt...