6件ヒット
[1-6件を表示]
(0.091秒)
検索結果
先頭5件
-
Thread
# report _ on _ exception -> bool (54415.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
デフォルトはスレッド作成時の [m:Thread.report_on_exception] です。
- **param** `newstate` -- スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。
```ruby title="例"
a = Thread.new{ Thread.stop; raise }
a.report_on_exception = true
p a.report_on_exception # => true
a.... -
Thread
. report _ on _ exception -> bool (54361.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
デフォルトは true です。
```ruby
Thread.new { 1.times { raise } }
```
は $stderr に以下のように出力します:
```text
#<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... -
Thread
# report _ on _ exception=(newstate) (18415.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
デフォルトはスレッド作成時の [m:Thread.report_on_exception] です。
- **param** `newstate` -- スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。
```ruby title="例"
a = Thread.new{ Thread.stop; raise }
a.report_on_exception = true
p a.report_on_exception # => true
a.... -
Thread
. report _ on _ exception=(newstate) (18361.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
デフォルトは true です。
```ruby
Thread.new { 1.times { raise } }
```
は $stderr に以下のように出力します:
```text
#<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... -
NEWS for Ruby 2
. 4 . 0 (37.0) -
NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
NEWS for Ruby 2.4.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。
## 2.3.0 以降の変更
### 言語仕様の変更
- 条件式での多重代入ができるようになりました [feature:10617]
- [m:Symbol#to_proc] でメソッド呼び出し元での Refinements が有効になりま... -
NEWS for Ruby 2
. 5 . 0 (19.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...FrozenError]
- 新しい例外クラスです [feature:13224]
### 標準添付ライブラリの更新
- [lib:bigdecimal]
- BigDecimal 1.3.4 に更新
- [m:BigDecimal::VERSION] を追加
- 非推奨(1.4.0で削除予定)
- BigDecimal.new
- BigDecimal.ver
- [m:BigD...
