Exception: SystemCallError

Inherits:
StandardError show all
Defined in:
error.c

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Exception

#backtrace, #exception, exception, #inspect, #message, #set_backtrace, #to_s, #to_str

Constructor Details

#new(msg, errno) ⇒ Object

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.



876
877
878
# File 'error.c', line 876

static VALUE
syserr_initialize(argc, argv, self)
int argc;

Class Method Details

.===(other) ⇒ Boolean

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

Returns:

  • (Boolean)


950
951
952
# File 'error.c', line 950

static VALUE
syserr_eqq(self, exc)
VALUE self, exc;

Instance Method Details

#errnoFixnum

Return this SystemCallError’s error number.

Returns:



934
935
936
# File 'error.c', line 934

static VALUE
syserr_errno(self)
VALUE self;