Exception: SystemCallError
- Inherits:
 - 
      StandardError
      
        
- Object
 - Exception
 - StandardError
 - SystemCallError
 
 
- Defined in:
 - error.c
 
Class Method Summary collapse
- 
  
    
      .===(other)  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Return
trueif 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
Errnoclass for that error, otherwise constructs a genericSystemCallErrorobject. 
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.
      950 951 952  | 
    
      # File 'error.c', line 950 static VALUE syserr_eqq(self, exc) VALUE self, exc;  | 
  
Instance Method Details
#errno ⇒ Fixnum
Return this SystemCallError’s error number.
      934 935 936  | 
    
      # File 'error.c', line 934 static VALUE syserr_errno(self) VALUE self;  |