Exception: Gem::DependencyResolutionError
- Inherits:
 - 
      DependencyError
      
        
- Object
 - RuntimeError
 - Exception
 - DependencyError
 - Gem::DependencyResolutionError
 
 
- Defined in:
 - lib/rubygems/exceptions.rb
 
Overview
Raised by Gem::Resolver when a Gem::Dependency::Conflict reaches the toplevel. Indicates which dependencies were incompatible through #conflict and #conflicting_dependencies
Instance Attribute Summary collapse
- 
  
    
      #conflict  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute conflict.
 
Instance Method Summary collapse
- #conflicting_dependencies ⇒ Object
 - 
  
    
      #initialize(conflict)  ⇒ DependencyResolutionError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of DependencyResolutionError.
 
Constructor Details
#initialize(conflict) ⇒ DependencyResolutionError
Returns a new instance of DependencyResolutionError.
      53 54 55 56 57 58  | 
    
      # File 'lib/rubygems/exceptions.rb', line 53 def initialize(conflict) @conflict = conflict a, b = conflicting_dependencies super "conflicting dependencies #{a} and #{b}\n#{@conflict.explanation}" end  | 
  
Instance Attribute Details
#conflict ⇒ Object (readonly)
Returns the value of attribute conflict.
      51 52 53  | 
    
      # File 'lib/rubygems/exceptions.rb', line 51 def conflict @conflict end  | 
  
Instance Method Details
#conflicting_dependencies ⇒ Object
      60 61 62  | 
    
      # File 'lib/rubygems/exceptions.rb', line 60 def conflicting_dependencies @conflict.conflicting_dependencies end  |