るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.127秒)
トップページ > クエリ:r[x] > 種類:インスタンスメソッド[x] > クラス:SystemExit[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

ライブラリ

検索結果

SystemExit#status -> Integer (102.0)

例外オブジェクトに保存された終了ステータスを返します。

...します。

終了ステータスは Kernel.#exit や SystemExit.new などで設定されます。

例:

begin
exit 1
r
escue SystemExit => err
p err.status # => 1
end

begin
r
aise SystemExit.new(1, "dummy exit")
r
escue SystemExit => err
p err.status # => 1
end...