Exception: Gem::MiniMirror::ResourceHandler::HandlerNotFound

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

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ HandlerNotFound

Returns a new instance of HandlerNotFound.



15
16
17
18
# File 'lib/rubygems/mini_mirror/resource_handler.rb', line 15

def initialize(options = {})
  @type = options[:type]
  @extension = options[:ext]
end

Instance Method Details

#messageObject



20
21
22
23
# File 'lib/rubygems/mini_mirror/resource_handler.rb', line 20

def message
  "could not find handler for file extension '#@extension'" +
  @type.to_s.empty? ? "" : " or for file type #@type"
end