るりまサーチ

最速Rubyリファレンスマニュアル検索!
20件ヒット [1-20件を表示] (0.063秒)
トップページ > クエリ:Kernel.#p[x] > クエリ:$5[x] > クエリ:ancestors[x] > クエリ:$ERROR_POSITION[x] > クラス:UncaughtThrowError[x]

別のキーワード

  1. openssl ia5string
  2. asn1 ia5string
  3. net/imap md5
  4. socket tcp_md5sig
  5. encoding big5_hkscs

ライブラリ

キーワード

検索結果

UncaughtThrowError#tag -> object (23.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 (23.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
//}...