Exception: Sinject::DependencyInitializeException
- Inherits:
-
StandardError
- Object
- StandardError
- Sinject::DependencyInitializeException
- Defined in:
- lib/sinject/exceptions.rb
Instance Method Summary collapse
-
#initialize(expected_type) ⇒ DependencyInitializeException
constructor
A new instance of DependencyInitializeException.
- #to_s ⇒ Object
Constructor Details
#initialize(expected_type) ⇒ DependencyInitializeException
Returns a new instance of DependencyInitializeException.
27 28 29 |
# File 'lib/sinject/exceptions.rb', line 27 def initialize(expected_type) @expected_type = expected_type end |
Instance Method Details
#to_s ⇒ Object
31 32 33 |
# File 'lib/sinject/exceptions.rb', line 31 def to_s "The custom dependency initializer does not return an object of the expected type: '#{@expected_type}'" end |