Class

SystemCallError

Inheritance
< StandardError < Exception < Object

Descendents of class Exception are used to communicate between raise methods and rescue statements in begin/end blocks. Exception objects carry information about the exception—its type (the exception‘s class name), an optional descriptive string, and optional traceback information. Programs may subclass Exception to add additional information.

Methods

Class

Visibility Signature
public === (p1)
public new (...)

Instance

Visibility Signature
public errno ()

Class Method Detail

system_call_error === other => true or false

Return true if the receiver is a generic SystemCallError, or if the error numbers self and other are the same.

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.

Instance Method Detail

system_call_error.errno => fixnum

Return this SystemCallError‘s error number.