diff options
Diffstat (limited to 'lib/rubygems/exceptions.rb')
-rw-r--r-- | lib/rubygems/exceptions.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/rubygems/exceptions.rb b/lib/rubygems/exceptions.rb index d6c60c7a02..55d67f9125 100644 --- a/lib/rubygems/exceptions.rb +++ b/lib/rubygems/exceptions.rb @@ -37,7 +37,16 @@ class Gem::FormatException < Gem::Exception attr_accessor :file_path end -class Gem::GemNotFoundException < Gem::Exception; end +class Gem::GemNotFoundException < Gem::Exception + def initialize(msg, name=nil, version=nil, errors=nil) + super msg + @name = name + @version = version + @errors = errors + end + + attr_reader :name, :version, :errors +end class Gem::InstallError < Gem::Exception; end |