Exception: Sinject::DependencyRegistrationException

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

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ DependencyRegistrationException

Returns a new instance of DependencyRegistrationException.



39
40
41
# File 'lib/sinject/exceptions.rb', line 39

def initialize(key)
  @key = key
end

Instance Method Details

#to_sObject



43
44
45
# File 'lib/sinject/exceptions.rb', line 43

def to_s
  "A Dependency has already been registered for the key: '#{key}'"
end