Exception: Injectable::Registry::NotRegistered
- Inherits:
-
Exception
- Object
- Exception
- Injectable::Registry::NotRegistered
- Defined in:
- lib/injectable/registry.rb
Overview
This error is raised when asking for an implementing class that is not registered in the registry.
Instance Attribute Summary collapse
- #name ⇒ Object readonly
- #name The name of the requested implementation.(Thenameoftherequestedimplementation.) ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(name) ⇒ NotRegistered
constructor
Initialize the new error.
Constructor Details
#initialize(name) ⇒ NotRegistered
Initialize the new error.
77 78 79 80 |
# File 'lib/injectable/registry.rb', line 77 def initialize(name) @name = name super("No implementation registered for name: #{name.inspect}.") end |
Instance Attribute Details
#name ⇒ Object (readonly)
67 68 69 |
# File 'lib/injectable/registry.rb', line 67 def name @name end |
#name The name of the requested implementation.(Thenameoftherequestedimplementation.) ⇒ Object (readonly)
67 |
# File 'lib/injectable/registry.rb', line 67 attr_reader :name |