Exception: SystemCallError
- Inherits:
-
StandardError
- Object
- Exception
- StandardError
- SystemCallError
- Defined in:
- error.c
Class Method Summary collapse
-
.===(other) ⇒ Boolean
Return
true
if the receiver is a genericSystemCallError
, or if the error numbers self and other are the same.
Instance Method Summary collapse
-
#errno ⇒ Fixnum
Return this SystemCallError’s error number.
-
#new(msg, errno) ⇒ Object
constructor
If errno corresponds to a known system error code, constructs the appropriate
Errno
class for that error, otherwise constructs a genericSystemCallError
object.
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.
875 876 877 |
# File 'error.c', line 875 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.
949 950 951 |
# File 'error.c', line 949 static VALUE syserr_eqq(self, exc) VALUE self, exc; |
Instance Method Details
#errno ⇒ Fixnum
Return this SystemCallError’s error number.
933 934 935 |
# File 'error.c', line 933 static VALUE syserr_errno(self) VALUE self; |