Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

SystemCallError.new

SystemCallError.new(msg, errno) → system_call_error_subclass

If errno corresponds to a known system error code, constructs the appropriate Errno class for that error, otherwise constructs a generic SystemCallError object. The error number is subsequently available via the errno method.

See also .=== #errno also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1