Exception: Sinject::DependencyInitializeException

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

Instance Method Summary collapse

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_sObject



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