Class: Gem::SourceFetchProblem
- Inherits:
 - 
      ErrorReason
      
        
- Object
 - ErrorReason
 - Gem::SourceFetchProblem
 
 
- Defined in:
 - lib/rubygems/errors.rb
 
Overview
An error that indicates we weren’t able to fetch some data from a source
Instance Attribute Summary collapse
- 
  
    
      #error  ⇒ Object 
    
    
      (also: #exception)
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The fetch error which is an Exception subclass.
 - 
  
    
      #source  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The source that had the fetch problem.
 
Instance Method Summary collapse
- 
  
    
      #initialize(source, error)  ⇒ SourceFetchProblem 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Creates a new SourceFetchProblem for the given
sourceanderror. - 
  
    
      #wordy  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
An English description of the error.
 
Constructor Details
#initialize(source, error) ⇒ SourceFetchProblem
Creates a new SourceFetchProblem for the given source and error.
      153 154 155 156  | 
    
      # File 'lib/rubygems/errors.rb', line 153 def initialize(source, error) @source = source @error = error end  | 
  
Instance Attribute Details
#error ⇒ Object (readonly) Also known as: exception
The fetch error which is an Exception subclass.
      166 167 168  | 
    
      # File 'lib/rubygems/errors.rb', line 166 def error @error end  | 
  
#source ⇒ Object (readonly)
The source that had the fetch problem.
      161 162 163  | 
    
      # File 'lib/rubygems/errors.rb', line 161 def source @source end  |