Exception: Gem::GemNotFoundException

Inherits:
Exception
  • Object
show all
Defined in:
lib/rubygems/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, name = nil, version = nil, errors = nil) ⇒ GemNotFoundException

Returns a new instance of GemNotFoundException.



41
42
43
44
45
46
# File 'lib/rubygems/exceptions.rb', line 41

def initialize(msg, name=nil, version=nil, errors=nil)
  super msg
  @name = name
  @version = version
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors



48
49
50
# File 'lib/rubygems/exceptions.rb', line 48

def errors
  @errors
end

#nameObject (readonly)

Returns the value of attribute name



48
49
50
# File 'lib/rubygems/exceptions.rb', line 48

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version



48
49
50
# File 'lib/rubygems/exceptions.rb', line 48

def version
  @version
end