Exception: Gem::MiniMirror::ResourceHandler::HandlerNotFound
- Inherits:
-
Exception
- Object
- Exception
- Gem::MiniMirror::ResourceHandler::HandlerNotFound
- Defined in:
- lib/rubygems/mini_mirror/resource_handler.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ HandlerNotFound
constructor
A new instance of HandlerNotFound.
- #message ⇒ Object
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( = {}) @type = [:type] @extension = [:ext] end |
Instance Method Details
#message ⇒ Object
20 21 22 23 |
# File 'lib/rubygems/mini_mirror/resource_handler.rb', line 20 def "could not find handler for file extension '#@extension'" + @type.to_s.empty? ? "" : " or for file type #@type" end |