123456789_123456789_123456789_123456789_123456789_

Exception: Gem::Package::FormatError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error, ::Gem::Exception, RuntimeError
Instance Chain:
self, Error, ::Gem::Exception, RuntimeError
Inherits: Gem::Package::Error
Defined in: lib/rubygems/package.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(message, source = nil) ⇒ FormatError

[ GitHub ]

  
# File 'lib/rubygems/package.rb', line 58

def initialize message, source = nil
  if source
    @path = source.path

    message = message + " in #{path}" if path
  end

  super message
end

Instance Attribute Details

#path (readonly)

[ GitHub ]

  
# File 'lib/rubygems/package.rb', line 56

attr_reader :path