class Gem::ConflictError
当加载了冲突的 gem 规范时引发
属性
一个 Hash,映射了导致冲突的依赖项的冲突规范
发生冲突的规范
Public Class Methods
Source
# File lib/rubygems/errors.rb, line 83 def initialize(target, conflicts) @target = target @conflicts = conflicts @name = target.name reason = conflicts.map do |act, dependencies| "#{act.full_name} conflicts with #{dependencies.join(", ")}" end.join ", " # TODO: improve message by saying who activated `con` super("Unable to activate #{target.full_name}, because #{reason}") end
调用超类方法
Exception::new