Exception: Nexpose::APIError
- Inherits:
 - 
      RuntimeError
      
        
- Object
 - RuntimeError
 - Nexpose::APIError
 
 
- Defined in:
 - lib/nexpose.rb
 
Direct Known Subclasses
Instance Attribute Summary collapse
- 
  
    
      #reason  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute reason.
 - 
  
    
      #req  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute req.
 
Instance Method Summary collapse
- 
  
    
      #initialize(req, reason = '')  ⇒ APIError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of APIError.
 - #to_s ⇒ Object
 
Constructor Details
#initialize(req, reason = '') ⇒ APIError
Returns a new instance of APIError.
      73 74 75 76  | 
    
      # File 'lib/nexpose.rb', line 73 def initialize(req, reason = '') self.req = req self.reason = reason end  | 
  
Instance Attribute Details
#reason ⇒ Object
Returns the value of attribute reason.
      72 73 74  | 
    
      # File 'lib/nexpose.rb', line 72 def reason @reason end  | 
  
#req ⇒ Object
Returns the value of attribute req.
      72 73 74  | 
    
      # File 'lib/nexpose.rb', line 72 def req @req end  | 
  
Instance Method Details
#to_s ⇒ Object
      77 78 79  | 
    
      # File 'lib/nexpose.rb', line 77 def to_s "NexposeAPI: #{self.reason}" end  |