るりまサーチ

最速Rubyリファレンスマニュアル検索!
1129件ヒット [201-300件を表示] (0.018秒)
トップページ > クエリ:except[x]

別のキーワード

  1. _builtin except
  2. env except
  3. hash except
  4. except _builtin

オブジェクト

キーワード

検索結果

<< < 1 2 3 4 5 ... > >>

Thread#abort_on_exception=(newstate) (6100.0)

真の場合、そのスレッドが例外によって終了した時に、インタプリタ 全体を中断させます。false の場合、あるスレッドで起こった例 外は、Thread#join などで検出されない限りそのスレッ ドだけをなにも警告を出さずに終了させます。

...。c:Thread#exceptionを参照してください。

@param newstate 自身を実行中に例外発生した場合、インタプリタ全体を終了させるかどうかを true か false で指定します。

//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.abort_on_exception # => fal...
...se
thread.abort_on_exception = true
thread.abort_on_exception # => true
//}...

Thread#report_on_exception -> bool (6100.0)

真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

...ad.report_on_exception です。

@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。

//emlist[例][ruby]{
a = Thread.new{ Thread.stop; raise }
a.report_on_exception = true
a.report_on_exception # => tr...
...(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x00007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.stop; raise }
b.report_on_exception = false
b.run # => #<T...
...hread:0x00007fc3f48aefc0@(irb):4 dead>
//}

@see Thread.report_on_exception...

Thread#report_on_exception=(newstate) (6100.0)

真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

...ad.report_on_exception です。

@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。

//emlist[例][ruby]{
a = Thread.new{ Thread.stop; raise }
a.report_on_exception = true
a.report_on_exception # => tr...
...(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x00007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.stop; raise }
b.report_on_exception = false
b.run # => #<T...
...hread:0x00007fc3f48aefc0@(irb):4 dead>
//}

@see Thread.report_on_exception...

Thread.abort_on_exception -> bool (6100.0)

真の時は、いずれかのスレッドが例外によって終了した時に、インタプリタ 全体を中断させます。false の場合、あるスレッドで起こった例外は、Thread#join などで検出されない限りそのスレッドだけをなにも警告を出さずに終了させます。

...:Thread#exceptionを参照してください。

@param newstate スレッド実行中に例外発生した場合、インタプリタ全体を終了させるかどうかを true か false で指定します。

//emlist[例][ruby]{
Thread.abort_on_exception # => false
Thread.abort_on_exception = tr...
...ue
Thread.abort_on_exception # => true
//}...

Thread.abort_on_exception=(newstate) (6100.0)

真の時は、いずれかのスレッドが例外によって終了した時に、インタプリタ 全体を中断させます。false の場合、あるスレッドで起こった例外は、Thread#join などで検出されない限りそのスレッドだけをなにも警告を出さずに終了させます。

...:Thread#exceptionを参照してください。

@param newstate スレッド実行中に例外発生した場合、インタプリタ全体を終了させるかどうかを true か false で指定します。

//emlist[例][ruby]{
Thread.abort_on_exception # => false
Thread.abort_on_exception = tr...
...ue
Thread.abort_on_exception # => true
//}...

絞り込み条件を変える

Thread.report_on_exception -> bool (6100.0)

真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

...false です。

Thread.new { 1.times { raise } }

は $stderr に以下のように出力します:

#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: from -e:1:in `times'

これ...
...oin や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレポートを無効化しても
安全です。しかし、この場合、例外をハンドルするのが遅れたり、親...
...いて
終了を待つことができなかったりするかもしれません。

スレッドごとに設定する方法は Thread#report_on_exception= を参照してください。

@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを...
...true です。

Thread.new { 1.times { raise } }

は $stderr に以下のように出力します:

#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: from -e:1:in `times'

これ...

Thread.report_on_exception=(newstate) (6100.0)

真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

...false です。

Thread.new { 1.times { raise } }

は $stderr に以下のように出力します:

#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: from -e:1:in `times'

これ...
...oin や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレポートを無効化しても
安全です。しかし、この場合、例外をハンドルするのが遅れたり、親...
...いて
終了を待つことができなかったりするかもしれません。

スレッドごとに設定する方法は Thread#report_on_exception= を参照してください。

@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを...
...true です。

Thread.new { 1.times { raise } }

は $stderr に以下のように出力します:

#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: from -e:1:in `times'

これ...

WEBrick::HTTPAuth::Authenticator::AuthException -> Class (6100.0)

認証失敗時に発生する例外のクラスです。

認証失敗時に発生する例外のクラスです。

WEBrick::HTTPAuth::ProxyAuthenticator::AuthException -> Class (6100.0)

WEBrick::HTTPStatus::ProxyAuthenticationRequired です。

WEBrick::HTTPStatus::ProxyAuthenticationRequired です。

Exception (6000.0)

全ての例外の祖先のクラスです。

全ての例外の祖先のクラスです。

絞り込み条件を変える

<< < 1 2 3 4 5 ... > >>