class Gem::DependencyResolutionError

当 Gem::Dependency::Conflict 达到顶层时,由 Gem::Resolver 抛出。通过 conflictconflicting_dependencies 指示哪些依赖项不兼容。

属性

conflict[R]

公共类方法

new(conflict) 点击切换源代码
调用父类方法
# File rubygems/exceptions.rb, line 53
def initialize(conflict)
  @conflict = conflict
  a, b = conflicting_dependencies

  super "conflicting dependencies #{a} and #{b}\n#{@conflict.explanation}"
end

公共实例方法

conflicting_dependencies() 点击切换源代码
# File rubygems/exceptions.rb, line 60
def conflicting_dependencies
  @conflict.conflicting_dependencies
end