On this page
End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class · Ruby 3.1
SystemCallError
SystemCallError is the base class for all low-level platform-dependent errors.
The errors available on the current platform are subclasses of SystemCallError and are defined in the Errno module.
Example
File.open("does/not/exist")
raises the exception:
Errno::ENOENT: No such file or directory - does/not/exist