るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.023秒)
トップページ > クエリ:label[x] > クエリ:Label[x] > クラス:UncaughtThrowError[x] > バージョン:2.5.0[x] > クエリ:to_s[x]

別のキーワード

  1. _builtin label
  2. logger sev_label
  3. _builtin base_label
  4. tms label
  5. location label

ライブラリ

検索結果

UncaughtThrowError#to_s -> String (54397.0)

self を tag を含む文字列表現にして返します。

...self を tag を含む文字列表現にして返します。

//emlist[例][ruby]{
def do_complicated_things
throw :uncaught_label
end

begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.to_s # => "uncaught throw :uncaught_label"
end
//}...