< 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.



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


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., 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.