Exception: Sinject::DependencyRegistrationException
- Inherits:
-
StandardError
- Object
- StandardError
- Sinject::DependencyRegistrationException
- Defined in:
- lib/sinject/exceptions.rb
Instance Method Summary collapse
-
#initialize(key) ⇒ DependencyRegistrationException
constructor
A new instance of DependencyRegistrationException.
- #to_s ⇒ Object
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_s ⇒ Object
43 44 45 |
# File 'lib/sinject/exceptions.rb', line 43 def to_s "A Dependency has already been registered for the key: '#{@key}'" end |