Exception: Injectable::Container::Unresolvable
- Inherits:
-
Exception
- Object
- Exception
- Injectable::Container::Unresolvable
- Defined in:
- lib/injectable/container.rb
Overview
This error is raised when asking for an object out of the container that cannot be resolved.
Instance Attribute Summary collapse
- #classes ⇒ Object readonly
- #classes The classes that were attempted to instantiate.(Theclassesthatwereattemptedtoinstantiate.) ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(classes) ⇒ Unresolvable
constructor
Initialize the new error.
Constructor Details
#initialize(classes) ⇒ Unresolvable
Initialize the new error.
68 69 70 71 72 73 74 |
# File 'lib/injectable/container.rb', line 68 def initialize(classes) @classes = classes super( "Could not instantiate an object for any of: #{classes.join(", ")}. " + "Please ensure all required dependencies are in the container." ) end |
Instance Attribute Details
#classes ⇒ Object (readonly)
57 58 59 |
# File 'lib/injectable/container.rb', line 57 def classes @classes end |
#classes The classes that were attempted to instantiate.(Theclassesthatwereattemptedtoinstantiate.) ⇒ Object (readonly)
57 |
# File 'lib/injectable/container.rb', line 57 attr_reader :classes |