Exception: SmartIoC::Errors::AmbiguousBeanDefinition

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

Instance Method Summary collapse

Constructor Details

#initialize(bean_name, bean_definitions) ⇒ AmbiguousBeanDefinition

Returns a new instance of AmbiguousBeanDefinition.



9
10
11
12
13
14
15
# File 'lib/smart_ioc/errors.rb', line 9

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