Exception: Gem::Package::FormatError

Inherits:
Error show all
Defined in:
lib/rubygems/package.rb

Instance Attribute Summary collapse

Attributes inherited from Exception

#source_exception

Instance Method Summary collapse

Constructor Details

#initialize(message, path = nil) ⇒ FormatError

Returns a new instance of FormatError.



57
58
59
60
61
62
63
# File 'lib/rubygems/package.rb', line 57

def initialize message, path = nil
  @path = path

  message << " in #{path}" if path

  super message
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path



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

def path
  @path
end