るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.053秒)
トップページ > バージョン:2.6.0[x] > クエリ:Kernel.#p[x] > クエリ:gets[x] > クエリ:$8[x] > クエリ:have_type[x] > クエリ:$-F[x] > クエリ:fail[x] > クラス:UncaughtThrowError[x]

別のキーワード

  1. openssl utf8string
  2. kconv toutf8
  3. kconv isutf8
  4. asn1 utf8string
  5. encoding utf8_softbank

ライブラリ

キーワード

検索結果

UncaughtThrowError#tag -> object (70.0)

Kernel.#throw に指定した tag を返します。

...Kernel.#throw に指定した tag を返します。

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

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

UncaughtThrowError#value -> object (70.0)

Kernel.#throw に指定した value を返します。

...Kernel.#throw に指定した value を返します。

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

begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.value # => "uncaught_value"
end
//}...