Exception: DependencyInitializeException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sinject.rb

Instance Method Summary collapse

Constructor Details

#initialize(expected_type) ⇒ DependencyInitializeException

Returns a new instance of DependencyInitializeException.



213
214
215
# File 'lib/sinject.rb', line 213

def initialize(expected_type)
  @expected_type = expected_type
end

Instance Method Details

#to_sObject



217
218
219
# File 'lib/sinject.rb', line 217

def to_s
  "The custom dependency initializer does not return an object of the expected type: '#{@expected_type}'"
end