るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.039秒)
トップページ > ライブラリ:ビルトイン[x] > バージョン:2.5.0[x] > クエリ:systemcallerror[x] > クエリ:errno[x] > クエリ:Errno[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin errno
  2. systemcallerror errno
  3. exxx errno
  4. send errno::exxx
  5. new errno::exxx

クラス

検索結果

SystemCallError#errno -> Integer | nil (99940.0)

レシーバに対応するシステム依存のエラーコードを返します。

レシーバに対応するシステム依存のエラーコードを返します。

エラーコードを渡さない形式で生成した場合は nil を返します。

begin
raise Errno::ENOENT
rescue Errno::ENOENT => err
p err.errno # => 2
p Errno::ENOENT::Errno # => 2
end

begin
raise SystemCallError, 'message'
rescue SystemCallError => err
p err.e...