20件ヒット
[1-20件を表示]
(0.490秒)
トップページ >
:Kernel.#p
>
:$?
>
:$PROGRAM_NAME
>
:$!
>
:scanf
>
:$OUTPUT_FIELD_SEPARATOR
> クラス:UncaughtThrowError
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
検索結果
-
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
//}...