Exception: SmartIoC::Errors::AmbiguousBeanDefinition
- Inherits:
-
StandardError
- Object
- StandardError
- SmartIoC::Errors::AmbiguousBeanDefinition
- Defined in:
- lib/smart_ioc/errors.rb
Instance Method Summary collapse
-
#initialize(bean_name, bean_definitions) ⇒ AmbiguousBeanDefinition
constructor
A new instance of AmbiguousBeanDefinition.
Constructor Details
#initialize(bean_name, bean_definitions) ⇒ AmbiguousBeanDefinition
Returns a new instance of AmbiguousBeanDefinition.
19 20 21 22 23 24 25 |
# File 'lib/smart_ioc/errors.rb', line 19 def initialize(bean_name, bean_definitions) super(%Q( Unable to create bean :#{bean_name}. Several definitions were found. #{bean_definitions.map(&:inspect).join("\n\n")} )) end |